new Timer(defaults)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
defaults |
any |
<optional> |
Members
-
delay :number
-
-
duration :number
-
-
easing :string
-
-
loop :string
-
-
loopDelay :number
-
-
loopMax :number
-
-
progress :number
-
-
stopWhenFinished :boolean
-
-
time :number
-
Methods
-
clearEvents() → {ht.Animation.TargetedAnimation}
-
Returns:
ht.Animation.TargetedAnimation -
fireEvent(key) → {ht.Animation.TargetedAnimation}
-
Parameters:
Name Type Description keystring Returns:
ht.Animation.TargetedAnimation -
isPaused() → {boolean}
-
Returns:
boolean -
isRunning() → {boolean}
-
Returns:
boolean -
off(key, action) → {ht.Animation.TargetedAnimation}
-
Parameters:
Name Type Description keystring actionfunction Returns:
ht.Animation.TargetedAnimation -
on(key, action) → {ht.Animation.TargetedAnimation}
-
Parameters:
Name Type Description keystring actionfunction Returns:
ht.Animation.TargetedAnimation -
pause() → {ht.Animation.TargetedAnimation}
-
Returns:
ht.Animation.TargetedAnimation -
play(speed, start, loop) → {ht.Animation.TargetedAnimation}
-
Parameters:
Name Type Description speednumber startnumber loopstring Returns:
ht.Animation.TargetedAnimation -
resume() → {ht.Animation.TargetedAnimation}
-
Returns:
ht.Animation.TargetedAnimation -
scale(scale) → {ht.Animation.Timer}
-
Parameters:
Name Type Description scalenumber Returns:
ht.Animation.Timer -
scaleTo(duration) → {ht.Animation.Timer}
-
Parameters:
Name Type Description durationnumber Returns:
ht.Animation.Timer -
shift(time) → {ht.Animation.Timer}
-
Parameters:
Name Type Description timenumber Returns:
ht.Animation.Timer -
stop() → {ht.Animation.TargetedAnimation}
-
Returns:
ht.Animation.TargetedAnimation