TerraHQ Posted December 16, 2021 Share Posted December 16, 2021 Hello! I would like to get some help on this The idea is that the div "box" in chapter 2 behaves like a parallax effect on X axis(different speed while scrolling). At the same time try to respect at the position sett up via CSS at the center of the screen See the Pen zYEZRxL by andresclua (@andresclua) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted December 16, 2021 Share Posted December 16, 2021 I'm not sure I understand what you're trying to do, but have you looked at containerAnimation? Link to comment Share on other sites More sharing options...
TerraHQ Posted December 16, 2021 Author Share Posted December 16, 2021 hey @OSUblake Thanks for the tip, I've updated the codepen but I can't get to work as I want. I would like as soon as the magenta box is visible, move it to X axis until is not visible on my screen. Link to comment Share on other sites More sharing options...
Solution OSUblake Posted December 16, 2021 Solution Share Posted December 16, 2021 Maybe this will help you get started. See the Pen vYexjev by GreenSock (@GreenSock) 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