Jump to content

Tom B. @ Wix

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

Recommended Posts



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?



Link to comment
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
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.