Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FrameAnim

Hierarchy

Index

Constructors

constructor

Properties

Protected _bus

_bus: EventBus = new EventBus(this)

Protected _cfg

Protected _dir

_dir: "forward" | "backward"

Protected _loop

_loop: number = 0

Protected _targets

_targets: Array<HTMLElement | object> = []

Protected _timer

_timer: Timer = null

Methods

Protected _reset

  • _reset(): void

Protected _resetTargets

  • _resetTargets(): void

Protected _setupTimer

  • _setupTimer(): void

config

  • config<T>(): T

direction

  • direction(): "forward" | "backward"
  • direction(d: "forward" | "backward"): this
  • Returns "forward" | "backward"

  • Parameters

    • d: "forward" | "backward"

    Returns this

getLooped

  • getLooped(): number

getState

isRunning

  • isRunning(): boolean

off

  • off(ev?: string): this
  • Parameters

    • Optional ev: string

    Returns this

on

pause

  • pause(): this
  • Pauses the animation.

    Returns this

play

replay

  • replay(): void

stop

  • stop(): this
  • Stops the animation and resets the play head to its initial position.

    Returns this

targets