Mitchsitoo Posted February 7 Share Posted February 7 Hi, got this timeline that works with the page scroll, but it ends before the end marker touch the end trigger, don't know how to fix it. I tried to use a gsap.timeline but it's the same. See the Pen jOJpJea by Jos-Mitchell (@Jos-Mitchell) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted February 7 Share Posted February 7 It looks like you've miscalculated the necessary stroke-dashoffset. This is just one of the benefits of using our DrawSVGPlugin - it makes it all super easy and solves cross-browser issues too: See the Pen xxBJejZ by GreenSock (@GreenSock) on CodePen DrawSVGPlugin is a membership benefit of Club GSAP. If you prefer to skip drawSVG and instead directly animate strokeDashoffset, you'll need to figure out the proper values based on the length of the path. Good luck! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now