Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Global TWEEN

dalisoft edited this page Aug 4, 2017 · 2 revisions

Global TWEEN

import TWEEN, { Tween, Easing, Interpolation, autoPlay } from 'es6-tween';

autoPlay(true); // TWEEN auto-runs the loop-frames

// Interpolation Syntax Easy-to-Use

const { Linear, Bezier, CatmullRom } = Interpolation; // Hooray, use the shorthand

t.interpolation(Bezier);

// Easing Syntax Easy-to-Use

const { Quadratic } = Easing;

t.easing(Quadratic.InOut);
Clone this wiki locally