Jump to content
Search Community

While Animating SVG DashOffset using GSAP, the timeline not matches exactly

Qamar Aziz test
Moderator Tag

Go to solution Solved by Qamar Aziz,

Recommended Posts

Yeah, that's why DrawSVGPlugin is so useful - it handles all that stuff for you, plus it solves a bunch of cross-browser inconsistencies: 

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

 

You weren't calculating the length of that path correctly, so the strokeDashoffset wasn't correct. 

 

DrawSVG is a membership benefit of Club GSAP, FYI. Hopefully you'll find that the membership pays for itself very quickly and makes you more profitable. 

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