Jump to content
GreenSock

Facet Wealth

Beginner drawSVG question

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 there, first post on the forums. Excited to be using Greensock, it's been great so far.

 

I'm trying to accomplish 2 drawSVG staggered animations on an SVG path using Timeline:

 

1) Draw the stroke

2) Draw the fill

 

If I combine them into one Tweenmax.from() call, it works great. However, when I stagger them, the 2nd from() call where I'm passing fill is trying to redraw the stroke as well.  Is it possible to let the call know to ignore the stroke in the 2nd from() call?


Thanks!

Link to comment
Share on other sites

You can only animate stroke, fill cannot be drawn. Following is the thread that discusses same, you can get some tricks from it on how you can use mask to imitate drawing fill.

 

 

  • Like 5
Link to comment
Share on other sites

Yessir, using the CSSPlugin to do fill in the 2nd call separate from SVGDraw is working great. Thank you for the quick response!

Link to comment
Share on other sites

Great, so your question is resolved?

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