All examples · Sprites and 2D · As Markdown, for AIs

Tweens and easing

What this example shows

useTween() hands back a function that starts tweens. Each one moves the fields of its target named in to, from where they are, over duration seconds.

Six rows make the same trip through six curves, looping with yoyo and loop: true. They fan out because each curve is somewhere else at the same moment.

Starting
Starting
—