Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Fábio Novais

drawSVG strokes

Recommended Posts

First of all, I'd like to say I'm sorry cause I'm really new in tweening.
I've made an example of what I'm trying to do.
I need to animate that circle making each stroke to go from 0 to 100, one after other, clockwise. Each one will have a different color.
The way I tryied, It did't work at all. 
The stroke animate, and then back to point zero. I need something more like animating fill. 

See the Pen NggpPo by fnovais (@fnovais) on CodePen

Link to comment
Share on other sites

Fábio Novais,


"DrawSVGPlugin does not animate the fill of the SVG at all - it only affects the stroke using stroke-dashoffset and stroke-dasharray CSS properties."


Please try to draw the segments only as strokes. Here just an example:

See the Pen dRRdyg by mikeK (@mikeK) on CodePen



Happy drawing ...

  • Like 3
Link to comment
Share on other sites

Thank you so much, Mikel.
You were live saving. :)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.