I am working on a social media project at the moment, where I want to implement "stories".
I want there to be an easy way to see how many stories you’ve already seen and how many there are.
Then, seeing the WhatsApp status (), I thought that this could be a good way.
I was looking forward to implementing this in CSS, but looking it up, there were only very few results that didn’t provide me with the information I would need.
I stumbled across the "conic-gradient" CSS property, however, I can only make one whole border, not many small ones that I could round.
Are there any ideas or information (e.g. MDN docs, own code) you have for me? Thanks.
2
Answers
You can use the following CSS:-
Check svg properties to adjust the width and the styles that you want, play with it as much as you can to have a deep understanding.
You could use an SVG with a
stroke-dasharray
.