Jump to content
GreenSock

Christoph Erdmann

Scrolltrigger with "scrub" and "once" leaves empty space

Go to solution Solved by akapowl,

Recommended Posts

Hi,
I am trying my hand at scrolltrigger (see codepen) and have the following problem: I would like the scrub functionality to play only once. If the animation is over, the last image should simply remain. If I use once: true there is a lot of space left by the ".pin-spacer". How do I solve this correctly?

 

Best,

Christoph

See the Pen eYGjjmj by mcsodbrenner (@mcsodbrenner) on CodePen

Link to comment
Share on other sites

  • Solution

Hey there @Christoph Erdmann

 

Check out these threads, they have examples for how to handle that.

 

 

 

 

  • 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.
×