Idas Posted April 19, 2022 Share Posted April 19, 2022 I don't understand why in the first section everything works, passing to the second one, however, the animation restarts from the color set via css. Also when you go back the animation breaks. See the Pen abEXdaG by DanyIdas (@DanyIdas) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted April 19, 2022 Share Posted April 19, 2022 Hi @Idas, That's one of the Most Common ScrollTrigger Mistakes - creating .to() logic issues. When you target the same property of the same element in multiple ScrollTriggers, you need to use immediateRender: false, .fromTo() tweens or a timeline. https://greensock.com/st-mistakes/#to-issues See the Pen c5debd87e814df47d92a60f751467d55 by PointC (@PointC) on CodePen Happy tweening. 4 1 Link to comment Share on other sites More sharing options...
Idas Posted April 19, 2022 Author Share Posted April 19, 2022 @PointC thank you! 1 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