Jump to content
Search Community

Add extra 'padding/time' to end of an animation

fakesamgregory test
Moderator Tag

Go to solution Solved by Carl,

Recommended Posts

I have a ScrollTrigger that pins the animation.

 

The issue is that as soon as the animation completes, scrolling continues. 

 

I would like to add an extra bit of space to the animation where nothing really happens, the user is just delayed slightly before scrolling continues after the end of the animation.

Link to comment
Share on other sites

  • Solution

to add empty space / time to the end of a timeline you can add a tween on an empty object with the duration of your choosing

tl.to("#someThing", {x:300, duration:1})

   .to({}, {duration:3}) // adds 3 seconds of time at end

 

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