dagda1 Posted October 17, 2023 Share Posted October 17, 2023 I am fairly sure there is a better way of scrolling elements left and right than I am currently doing with the attached codepen. How do others generally move elements left and right with scrollTrigger? See the Pen MWzJLXE by dagda1 (@dagda1) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted October 17, 2023 Share Posted October 17, 2023 Hi, Maybe something like this: https://stackblitz.com/edit/stackblitz-starters-b1jmyk?file=src%2FApp.js Hopefully this helps. Happy Tweening! Link to comment Share on other sites More sharing options...
dagda1 Posted October 19, 2023 Author Share Posted October 19, 2023 Hi, Thanks for the link. Is there any way to make the animation go slower? I've tried stagger but that did not work. Link to comment Share on other sites More sharing options...
Rodrigo Posted October 19, 2023 Share Posted October 19, 2023 Hi, You're in scroll land now, so duration in seconds has nothing to do with it. It's all about the amount of pixels that you scroll up/down as @Cassie explains here: Hopefully this helps. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
dagda1 Posted October 19, 2023 Author Share Posted October 19, 2023 Nice link. Very inciteful. 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