lustre/animation

Types

pub opaque type Animation
pub opaque type AnimationState
pub opaque type Animations
pub external type RequestedFrame

Functions

pub fn add(animations: Animations, name: String, start: Float, stop: Float, seconds: Float) -> Animations
pub external fn cancel_animation_frame(
  frame: RequestedFrame,
) -> Nil
pub fn cmd(animations: Animations, msg: fn(Float) -> a) -> Cmd(a)
pub fn new() -> Animations
pub fn remove(animations: Animations, name: String) -> Animations
pub external fn request_animation_frame(f) -> RequestedFrame
pub fn tick(animations: Animations, time_offset: Float) -> Animations
pub fn value(animations: Animations, which: String, default: Float) -> Float
Search Document