Share Posted October 19, 2022 Hello. Tell me how to make the text blocks in section 2 switch instantly, at the first scrolling with the mouse? Now there is a delay and the text blocks don't switch until you scroll to a certain position See the Pen VwxOEqO by Oleksandr07 (@Oleksandr07) on CodePen Link to comment Share on other sites More sharing options...
Share Posted October 19, 2022 ScrollTrigger is for animating things on the users scroll behavior, it sounds like the Observer plugin (docs) is more inline with what you are looking for, this watches for events (like scroll) to do something. You had set it to duration: {min: 1, max: 1} which means it will animate to the next 'slide' taking 1 second, you could fake it a bit by tweaking the snapping values, but the Observer plugin is build for it. See the Pen yLjWZjb?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen 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