Drawing animated arc with pure CSS

后端 未结 6 1782
挽巷
挽巷 2020-12-30 06:22

I know it is possible to draw and animate arcs in svg and canvas. However, is it possible in css?

I have created an arc using the following method:

.         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 06:57

    You might want to check out this article, Chris Coyier has done a article on pie chart animation which is basically the same as your demo if you remove the light blue background.enter image description here

    Article: http://css-tricks.com/css-pie-timer/

    Demo: http://codepen.io/HugoGiraudel/pen/BHEwo

提交回复
热议问题