Share Posted November 27, 2018 I'm creating a landing page and using GSAP to animate some text according the the user's scroll position. How can I keep the landing page in full view and only start scrolling down the page once the text animation has reached its end? See the Pen bQxKxK by TheJordanM (@TheJordanM) on CodePen Link to comment Share on other sites More sharing options...
Share Posted November 27, 2018 You can probably use sticky positioning. https://developer.mozilla.org/en-US/docs/Web/CSS/position#Sticky_positioning 4 1 Link to comment Share on other sites More sharing options...
Share Posted November 28, 2018 I saw you made a comment earlier. Did you get it working? You can change positioning back to normal once it's scrolled out of view. Link to comment Share on other sites More sharing options...
Author Share Posted November 28, 2018 1 hour ago, OSUblake said: I saw you made a comment earlier. Did you get it working? You can change positioning back to normal once it's scrolled out of view. I had played with fixed positioning and hiding it once you had scrolled far enough but it was messy. Sticky positioning was exactly what I was looking for so 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