pixi-viewport icon indicating copy to clipboard operation
pixi-viewport copied to clipboard

How to add different easing?

Open AgileInteractive opened this issue 3 years ago • 2 comments

I am doing some animation(), and it works nicely, except that I need to change the easing type.

As far as I have seen in the docs, I have found ease: 'linear' and ease: 'easeInOutSine'.

Are there more ease-types that are built-in (is there a liste somewhere?), or do we make our own? If so, how do we make our own?

AgileInteractive avatar Nov 15 '21 19:11 AgileInteractive

You can provide your own function or use any of the names listed here: https://easings.net/ (eg, "easeInCubic")

davidfig avatar Nov 15 '21 20:11 davidfig

Great, thank you!

AgileInteractive avatar Nov 16 '21 07:11 AgileInteractive