Jump to content
Search Community

Keep ScrollTrigger animation from affecting fixed position after trigger

agsymonds test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution

That's because you're animating the exact same element that you're pinning. That's almost never a good idea because pinning is a complicated procedure that requires wrapping the element in a spacer <div> that's sized/positioned in a very particular way to match the original element, etc. so when you animate that element's properties, it messes up the pinning functionality. It's much better to just wrap that element in a container, pin that container and animate the child element: 

See the Pen eYLNJrg 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...