Jump to content
GreenSock

TrulyNewbie

Stacking divs

Recommended Posts

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

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×