TrulyNewbie Posted February 1, 2022 Share Posted February 1, 2022 Hi, I've been playing around with horizontal scrolling, and I've encountered a problem. How do I scroll trigger horizontally? I was following the codepen I attached, and I've checked the forum, butI can't seem to find a solution. I want to animate each div as it comes in from the right. Thank you for any help! See the Pen vYWLRGZ by akapowl (@akapowl) on CodePen Link to comment Share on other sites More sharing options...
elegantseagulls Posted February 1, 2022 Share Posted February 1, 2022 Not sure how this will hook into locomotive, but have you tried ScrollTrigger's containerAnimation? See the Pen 9be5d371346765a8c9a426e8f65f1cea by GreenSock (@GreenSock) on CodePen 4 Link to comment Share on other sites More sharing options...
Solution TrulyNewbie Posted February 1, 2022 Author Solution Share Posted February 1, 2022 Thank you! For anyone else who may have this issue: See the Pen rNYejNb by NewbieRuby (@NewbieRuby) on CodePen Link to comment Share on other sites More sharing options...
elegantseagulls Posted February 1, 2022 Share Posted February 1, 2022 Heads up: It looks like you have a (hidden) horizontal scroll bar now, so if you're using a trackpad/magic mouse, you can horizontally scroll the site out of view of the animations/main content. 3 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