Basic Tweening Tutorial
To tween properties with Konva, we can instantiate a Konva.Tween
object and then start the tween by calling play()
.
Any numeric property of a Shape
, Group
, Layer
, or Stage
can be transitioned, such as:
x
,y
(position)rotation
width
,height
,radius
strokeWidth
opacity
scaleX
,scaleY
offsetX
,offsetY
For a full list of attributes and methods, check out the Konva.Tween documentation.
Instructions: Click the circle to start a simple linear animation.
- Vanilla
- React
- Vue
</rewritten_file>