Jump to content
Search Community

Animating a fixed element - scrollTrigger

bennyboy1978 test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

  • Solution

Hey I forked your pen and add some more text elements with some spacing between. And it is already doing what you want right? 

 

See the Pen xxXdqBW?editors=1100 by mvaneijgen (@mvaneijgen) on CodePen

 

I you don't want the text shown already at the start you just need to add an empty space to the beginning.

 

Hope it helps,

 

PS: Did some more tweaks, gave all the text elements an height of 100vh (and centered them) add a `endTrigger` to be the end of the `.d-flex` so it pins the graphic 100% of its height.

  • Like 5
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.
×
×
  • Create New...