v8.0.6

ht.Animation.Timer(defaults)

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}

fireEvent(key) → {ht.Animation.TargetedAnimation}

Parameters:
Name Type Description
key string

isPaused() → {boolean}

Returns:
boolean

isRunning() → {boolean}

Returns:
boolean

off(key, action) → {ht.Animation.TargetedAnimation}

Parameters:
Name Type Description
key string
action function

on(key, action) → {ht.Animation.TargetedAnimation}

Parameters:
Name Type Description
key string
action function

pause() → {ht.Animation.TargetedAnimation}

play(speed, start, loop) → {ht.Animation.TargetedAnimation}

Parameters:
Name Type Description
speed number
start number
loop string

resume() → {ht.Animation.TargetedAnimation}

scale(scale) → {ht.Animation.Timer}

Parameters:
Name Type Description
scale number

scaleTo(duration) → {ht.Animation.Timer}

Parameters:
Name Type Description
duration number

shift(time) → {ht.Animation.Timer}

Parameters:
Name Type Description
time number

stop() → {ht.Animation.TargetedAnimation}