JulienF Posted November 23, 2023 Share Posted November 23, 2023 Hello, I'm trying to use the horizontal fake-scrolling but I don't see how I can start the scrub animation (box-2) before triggering the main horizontal tween. In my demo, box-2 animation is already half way, but only playing when I'm inside the pinned area. How can I make the box-2 animation start before pinning and continue after entering the pinned area? Thank you See the Pen oNmdmxZ by tristanpct (@tristanpct) on CodePen Link to comment Share on other sites More sharing options...
Solution Toso Posted November 23, 2023 Solution Share Posted November 23, 2023 in your demo, its part of the containerAnimation the scrollTween, and this scrollTwee's trigger is .container so as a fix here i just commented it and changed the start and end points See the Pen LYqmoBz?editors=0010 by ahmed-attia (@ahmed-attia) on CodePen 3 Link to comment Share on other sites More sharing options...
JulienF Posted November 24, 2023 Author Share Posted November 24, 2023 It was as simple as that. Thank you! 2 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