Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimInit

Hierarchy

Index

Properties

Optional autoreset

autoreset: boolean = false

Auto reset the targets properties at the starting of this animation.

Optional delay

delay: number = 0

Delays (ms) the start of playing.

Optional direction

direction: AnimDirection = "forward"

'forward': Animation progress goes from 0 to 100%
'backword': Animation progress goes from 100% to 0%
'alternate': Animation progress goes from 0% to 100% then goes back to 0%

Optional duration

duration: number = 1000

The duration time (ms) of one loop of this Animation.
The default value is 1s.

Optional endDelay

endDelay: number = 0

Delays (ms) the end of one loop.

Optional loop

loop: boolean | number = 1

Defines repeat number of this Animation.
The default value is 1.

Optional on

on: { looped?: EventHandler1<Anim, number>; looping?: EventHandler1<Anim, number>; updated?: EventHandler3<Anim, number, number, number>; updating?: EventHandler3<Anim, number, number, number>; finished?: EventHandler<Anim>; paused?: EventHandler<Anim>; pausing?: EventHandler<Anim>; starting?: EventHandler<Anim> }

Type declaration

  • Optional looped?: EventHandler1<Anim, number>

    The looped event is fired when an loop of this animation ends.

  • Optional looping?: EventHandler1<Anim, number>

    The looping is fired when an loop of this animation begins.

  • Optional updated?: EventHandler3<Anim, number, number, number>
  • Optional updating?: EventHandler3<Anim, number, number, number>
  • Optional finished?: EventHandler<Anim>

    The action to be executed at the conclusion of this Animation.

  • Optional paused?: EventHandler<Anim>

    The action to be executed at the paused of this Animation.

  • Optional pausing?: EventHandler<Anim>

    The action to be executed at the pausing of this Animation.

  • Optional starting?: EventHandler<Anim>

    The action to be executed at the starting of this Animation.

Optional targets

targets: AnimTargets