class

Opal::Animation::Animator

Inherits Reference < Object

Central animation orchestrator managing tween updates per frame.

Constructors

Instance methods

animate(name : String, from from_val : Number, to to_val : Number, duration : Time::Span = 300.milliseconds, easing : Symbol = :ease_out_cubic, now : Time::Instant = Time.instant, on_complete : Proc(Nil) | Nil = nil, &on_update : Float64 -> Nil) : self

Starts or updates a named tween animation

Source
cancel(name : String) : self
Source
clear
Source
running?
Source
tick(now : Time::Instant = Time.instant) : Nil

Advances all active animations by timestamp

Source
tweens
Source