Jump to content
Search Community

Question about ScrollTrigger.refresh()

flim test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

  • Solution

Hello @flim


That's quite testable - short answer: it does aso work on scrollTrigger inside a gsap.to()


Click the body to change the height of the .bg in this following example and see how the markers adjust because of the .refresh() that is being called.


See the Pen 16cfd8e6cedfd6ef69c32da5664e1895 by akapowl (@akapowl) on CodePen


  • Like 1
  • Thanks 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...