john2123 Posted December 11, 2022 Share Posted December 11, 2022 I have a red line on the left side of the text of the About title and I trying to get it to animate from 0 to the full amount I, but I can't get it to work when I use scroll snap, I was wondering if anyone knows how to solve this See the Pen eYKoXON by Aaron-123312 (@Aaron-123312) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted December 11, 2022 Share Posted December 11, 2022 I noticed several problems: You were loading multiple [old] versions of GSAP and ScrollTrigger as well as a script.js file that didn't exist. You aren't using the actual page as a scroller - you've got the ".container" set up as the scroller, so you need to tell ScrollTrigger that. By default, it uses the window/body as the scroller. See the Pen GRGaZwO by GreenSock (@GreenSock) on CodePen Is that more like what you were looking for? 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