Fatina Tween Sequence Transition

Fatina

Init

The first time you create a tween, Fatina will initialize itself automatically, using default values. If instead you prefer to initialize it yourself (recommended), call the method .init() once, BEFORE creating any tween (calling it afterwards will have no effect).

Controls

  • pause() / resume(): void
  • setTimescale(scale: number): void

Methods

  • init(): void This method has to be called once to initialize Fatina
  • update(dt: number): void
  • tween(obj): Tween Method used to create new tween
  • transition(obj): Transition Method used to create new transition
  • sequence(): Sequence Method used to create new sequence
  • pulse(obj, settings): ISequence Pulse preset
  • scale(obj, settings): ISequence Scale preset
  • wobble(obj, settings): ISequence Wobble preset
  • sonar(obj, settings): ISequence Sonar preset
  • shake(obj, settings): ISequence Shake preset
  • delay(duration) Delay
  • setTimeout(fn, duration): void This is just a simple helper around Fatina.Delay
  • setInterval(fn, duration): void This is just a simple helper around Fatina.Delay
  • ticker(name: string): ITicker
See More


Ticker

A Ticker is a container which provides a centralized tick to all his childrens.
By default, all the tweens are childs of the same default Ticker, but it's possible to change this behavior.

Properties

  • isRunning: boolean
  • isPaused: boolean

Controls

  • pause() / resume(): void
  • setTimescale(scale: number): void
  • kill(): void

Methods

  • addTick(listener: (dt: number) => void): void;
  • removeTick(listener: (dt: number) => void): void;
See More