Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Tom B. @ Wix

Is there a simple way to pause() and resume() with easing?

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi

 

I'm building an infinite horizontal image slider that slides when the user hovers over a 'next' or 'previous' buttons.

 

The design requires the animation to gradually pause/resume with a subtle easing and not pause immediately.

 

the only solution I found was to use an infinitely repeating tween for the slider, and attach a second tween to the buttons that tweens the 'timeScale' of the original tween with an easing.

 

Is there a simpler native way to do so without creating a second tween?

 

Thanks

Share this post


Link to post
Share on other sites

No, there is no built in method to handle this for you. Tweening timeScale from 1 to 0 to 1 seems like a nice simple solution to me though.

  • Like 2

Share this post


Link to post
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

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 


  • Recently Browsing   0 members

    No registered users viewing this page.

×