colehoward Posted May 2, 2021 Share Posted May 2, 2021 I want to pin an element after an animation (the box slides into position on scroll) takes place. I have tried to use a timeline to implement this, but I can't seem to change when the pinning starts. Does anyone know how I would do this? See the Pen NWdQdOL by howardcole (@howardcole) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted May 3, 2021 Solution Share Posted May 3, 2021 Can you describe in more detail what you're looking for? Does the slide-in happen correctly now, so it is pinned while it's sliding in or is it supposed to be sliding in AND scrolling up (not pinned)? Are you just wanting it to stay pinned longer (after it's done sliding in)? If so, just add extra space at the end of your timeline, like this: See the Pen GRrVEjW?editors=1010 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
colehoward Posted May 3, 2021 Author Share Posted May 3, 2021 Your solution is what I was looking for. Thanks! 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