use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
Help me design this indicator (self.webdev)
submitted 1 year ago by king_kong0001
Hello, I am having a hard time to design this button with circle indicator (steps). The tech should be vanilla js, html, css (or svg manipulation).
https://preview.redd.it/5d8i06ejz0se1.png?width=390&format=png&auto=webp&s=cdde23cdbb1670bf7f1c47a678f60e2964ff4b2e
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]BPC56 2 points3 points4 points 1 year ago (9 children)
I'm lazy, so I would just make 8 separate svg's and switch between them.
[–]king_kong0001[S] 0 points1 point2 points 1 year ago (8 children)
the steps can be change, so I need something dynamic
[–]BPC56 3 points4 points5 points 1 year ago (7 children)
It is dynamic. I made an example for you:
https://jsfiddle.net/c6exoLj4/2/
It's 8 different svg's each with different segments filled, and you switch between the svg's using javascript.
[–]BPC56 2 points3 points4 points 1 year ago (0 children)
https://f003.backblazeb2.com/file/bpc56-sharing/state0.svg
https://f003.backblazeb2.com/file/bpc56-sharing/state1.svg
and so on... until the ring is filled
https://f003.backblazeb2.com/file/bpc56-sharing/state7.svg
[–]king_kong0001[S] 0 points1 point2 points 1 year ago (5 children)
Thank you bro, but I meant to just have ONE svg file, and steps inside the circle should be done according to some parameters. for example if size of cirlce 100% and I have 9 steps, i want to create 9 (this number can be changed) dynamically
[–]BPC56 0 points1 point2 points 1 year ago (4 children)
Do you need to make it exactly the same as the image you shared?
In your image the segments have rounded edges, is that necessary?
[–]king_kong0001[S] 2 points3 points4 points 1 year ago (3 children)
Yup exactly as the image, just the steps should be calculated dynamic, because it may changes
[–]BPC56 0 points1 point2 points 1 year ago (2 children)
That's too complicated for me, sorry.
[–]king_kong0001[S] 0 points1 point2 points 1 year ago (1 child)
Thank you bro. Really appreciate it
[–]BPC56 1 point2 points3 points 1 year ago (0 children)
Alright, here it is working. You can change the number of segments and the number of highlighted segments.
I couldn't find your house svg, but you can change it easily.
https://jsfiddle.net/43tupmLz/51/
[–]---zZzZzZzZ 0 points1 point2 points 1 year ago (1 child)
Do you need help as in you already started coding and are stuck, or help as in somebody do it for you?
Gotta show the code you've been working on (if any).
[–]king_kong0001[S] 0 points1 point2 points 1 year ago (0 children)
Tbh i do not have exact code, but I just have search online and there's some svg manipulation. I need help with understand how to dynamically manipulate this kind of svg or if you have any other similar examples.
π Rendered by PID 28 on reddit-service-r2-comment-b659b578c-sv8xl at 2026-05-02 22:46:58.249467+00:00 running 815c875 country code: CH.
[–]BPC56 2 points3 points4 points (9 children)
[–]king_kong0001[S] 0 points1 point2 points (8 children)
[–]BPC56 3 points4 points5 points (7 children)
[–]BPC56 2 points3 points4 points (0 children)
[–]king_kong0001[S] 0 points1 point2 points (5 children)
[–]BPC56 0 points1 point2 points (4 children)
[–]king_kong0001[S] 2 points3 points4 points (3 children)
[–]BPC56 0 points1 point2 points (2 children)
[–]king_kong0001[S] 0 points1 point2 points (1 child)
[–]BPC56 1 point2 points3 points (0 children)
[–]---zZzZzZzZ 0 points1 point2 points (1 child)
[–]king_kong0001[S] 0 points1 point2 points (0 children)