IndM Posted March 4, 2023 Share Posted March 4, 2023 The text needs to get a class when the image is in the scrolltrigger. But the OnLeave makes the class remove even when still entered and not left. The OnLeave needs to stay because I'm going to add the onEnterback for when I scroll back again. What am I doing wrong here? See the Pen eYLRpYj?editors=0111 by indy-meermans (@indy-meermans) on CodePen Link to comment Share on other sites More sharing options...
Solution Cassie Posted March 4, 2023 Solution Share Posted March 4, 2023 Heya! So if you look at your marker positions - your end marker is hitting the bottom of the screen before your start marker is hitting the middle of the screen. So the end trigger is before the start trigger. Maybe you're looking for something like this? See the Pen yLxXYPR?editors=0111 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
IndM Posted March 4, 2023 Author Share Posted March 4, 2023 It allllll makes sense! Thank you @Cassie 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