Fatina Tween Sequence Transition

A Transition is a helper around tween to make their usage easier and less verbose for GUI or Webapps.

It take care of most anoying parts automatically (defaults, creating tweens, avoiding duplicates, autostart, cleaning old tweens), and expose tween into a more code friendly async/await way.

Methods

  • to(to: any, duration: number): Tween;
  • toSpeed(to: any, speed: number): Tween;
  • delay(duration: number): Tween
  • promiseTo(to: any, duration: number): Promise<Tween>;
  • promiseToSpeed(to: any, speed: number): Promise<Tween>;
  • promiseDelay(duration: number): Promise<Tween>
  • kill(): void;
See More