Skip to content

pixi-hm05 (player) / pixi-hm05 / TweenOptions

Interface: TweenOptions ​

Properties ​

PropertyTypeDescription
clock?Ticker | TweenRunner | nullWhat advances it: a pixi Ticker (default Ticker.shared — the player's own clock), a TweenRunner you step yourself, or null = nothing, you call tween.step(ms).
delay?numberwait this long before moving (default 0)
ease?TweenEasethe curve (default linear)
from?TweenPropsstart values; absent = what the target holds when it starts moving (after delay)
onComplete?() => voidonce it reaches the end (never after cancel)
onUpdate?(eased, tween) => voidevery step, with the eased 0..1
seconds?numberhow long it takes (default 0.3)

HereSplash — 2D animation for the web