Skip to main content

Tween

new Konva.Tween(config)

Tween constructor. Tweens enable you to animate a node between the current state and a new state. You can play, pause, reverse, seek, reset, and finish tweens. By default, tweens are animated using a linear easing. For more tweening options, check out Konva.Easings

Own Methods

play()

play

Returns: Tween

reverse()

reverse

Returns: Tween

reset()

reset

Returns: Tween

seek((t)

seek

Parameters:

  • t (Integer): time in seconds between 0 and the duration

Returns: Tween

pause()

pause

Returns: Tween

finish()

finish

Returns: Tween

destroy()

destroy