Appearance
Kiln API / kiln / TweenOptions
Interface: TweenOptions
Properties
| Property | Type | Description |
|---|---|---|
duration? | number | Seconds per run. Default 0.3. |
ease? | Easing | An ease name or a function of 0..1. Default 'outQuad'. |
delay? | number | Seconds before it starts. Start values are read when it starts. Default 0. |
repeat? | number | Extra runs after the first; -1 repeats forever. Default 0. |
yoyo? | boolean | Alternate direction on each repeat (there and back). Default false. |
from? | Record<string, number> | Start values instead of the current ones, written when the tween starts. |
tag? | string | A label carried by TweenDone so readers can tell tweens apart. Default ''. |
despawn? | boolean | Despawn the entity when the tween (and anything chained with .then) finishes. Default false. |