Jump to content
Search Community

Snapping animated text on SVG path w/ ScrollTrigger

oligsap test
Moderator Tag

Recommended Posts

Hey oligsap. A couple of big issues here:

  • Your tweens of the text paths don't have a linear ease so the percentage of the distance traveled is not equal to the progress. You should either compensate for that or just use a linear ease.
  • You're trying to snapTo values as if the text path animations were the only tweens inside of the timeline. But they're not - you have other tweens which affects the total percentages. So again, either compensate or change it to where that's not the case.

I'm also not sure why you need textPathLength as it's always 0 or why you have a delay of 0...

 

Here's how I'd do it:

See the Pen mdEbeZN?editors=0010 by GreenSock (@GreenSock) on CodePen

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