AsKadir Posted February 2, 2021 Posted February 2, 2021 Hey! I have a problem with ScrollTrigger, I have a container with images and I want horizontal scroll for them and some additional animations, So I took working code and tried to take ScrollTrigger and put it directly inside timeline, but can't understand why it's not working. As you can see in commented area is working code. Can you help me, please? See the Pen dypBQyR by ChicagoJostik (@ChicagoJostik) on CodePen.
ZachSaucier Posted February 2, 2021 Posted February 2, 2021 You're making one of the most common ScrollTrigger mistakes: including ScrollTriggers on tweens within timelines. Doing so doesn't make much sense. 1
Solution AsKadir Posted February 2, 2021 Author Solution Posted February 2, 2021 1 hour ago, ZachSaucier said: You're making one of the most common ScrollTrigger mistakes: including ScrollTriggers on tweens within timelines. Doing so doesn't make much sense. @ZachSaucier Hi, Zach! I read it before and now I read it about 30 times. After it I found that I didn't write pin: true and that was issue.
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