TrulyNewbie Posted January 6, 2022 Share Posted January 6, 2022 Hi, I'm trying to replicate this websites sticky element - https://www.graysdegree.show/graduate-2021/kerry-todd But I'm having trouble. I'm not sure if I've over complicated my code but I'd appreciate any advice/direction etc Thank you See the Pen eYGjmJN by NewbieRuby (@NewbieRuby) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted January 6, 2022 Share Posted January 6, 2022 Hey there! This was a brain scratcher for sure. I reckon it would be best to have one timeline attached to scroll and then tween each section up. The tricky bit is working out how many px to tween them up as they're all offset differently and different heights. Here's a possible solution! I've commented it out but ask if you have any questions ✨ See the Pen xxXJVmM?editors=0110 by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
TrulyNewbie Posted January 14, 2022 Author Share Posted January 14, 2022 Thank you 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