Jump to content
Search Community

drawSVG strokes

Fábio Novais test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi.
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

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.
×
×
  • Create New...