Jump to content
Search Community

DrawSVG not starting from 0

IndM test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

  • Solution

Hi,

 

I think the issue here is that your path is not a line but a closed path. DrawSVG animates the stroke of a path not the fill.

 

Here is a fork of your codepen with a stroke and stroke-width applied to it so you can see the problem:

See the Pen JjeMRBm by GreenSock (@GreenSock) on CodePen

 

You have to make that particular pat a single line, like the example you linked from the GreenSock collection.

 

Hopefully this helps.

Happy Tweening!

  • Like 2
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...