AntonioNB4 Posted June 26, 2023 Share Posted June 26, 2023 Hi community, I have created a footer reveal effects . So far so good. I would like the first section of the footer (the first child) to be in turn overlapped on the second child of the footer and at scroll, when the whole footer is shown, its position (first child) must return to its original position no longer overlapping the second child. I am trying somehow to change the y-positioning but nothing happens. Any suggestions ? See the Pen qBQRmvG by Antonio-Nocella (@Antonio-Nocella) on CodePen Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted June 27, 2023 Solution Share Posted June 27, 2023 Hi, I'm not completely sure I follow what you're trying to do. But in your last ScrollTrigger you have just "bottom" as start point, so it defaults to "bottom top" so that never happens, because the bottom of the trigger never reaches the top of the viewport (always use markers in development and while debugging). Also maybe a from instance is more what you're trying to achieve: See the Pen eYQgKVy by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
AntonioNB4 Posted June 27, 2023 Author Share Posted June 27, 2023 Basically, I wanted the footer to reveal itself at scroll but at the same time give a scroll animation to the first heading starting in overlapping on heading two and ascending it back to its original position. In the end I solved this by positioning heading two at the sticky bottom and setting the scroll trigger with uncover on heading one. 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