Jump to content
Search Community

Keep pinned sections pinned after end

JDansercoer test
Moderator Tag

Recommended Posts

Hi guys,

 

I was wondering if it was possible to keep a previously pinned element pinned even after it has finished animation.

 

In the provided Codepen (which is taken from the docs), if you closely inspect the HTML, you can see that the previous section, once it's completely covered, will move out of the screen. Is there any way to keep it pinned, as e.g. I will be animating out all the existing elements of this pinned section, while a new section will have been animated in?

 

In other ways, I would like to have the animations of two scrubbed sections visible at the same time.

See the Pen KKpLdWW 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.
×
×
  • Create New...