Jump to content
Search Community

Start and end position of pinned elements are not refresh(recalculated) after other elements are appended.

KST test
Moderator Tag

Go to solution Solved by ZachSaucier,

Recommended Posts

  • Solution

Hey Tiffany and welcome to the GreenSock forums :) 

 

This is a variation of one of the most common ScrollTrigger mistakes: creating ScrollTriggers out of order. You can read more about the cause in that article but the solution in this case would probably be to use refreshPriority. Something like this:

See the Pen ExyRzOr?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 2
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...