Expand description
JavaScript and TypeScript bindings for Animato.
This crate is compiled with wasm-pack and published as @animato/core.
It exposes the renderer-agnostic Animato engines to JavaScript while keeping
framework adapters in examples and application code.
Structs§
- Color
Tween - Perceptual color tween.
- Drag
State - Pointer drag tracker.
- Draggable
- Non-WASM placeholder for browser-only DOM helpers.
- Flip
Animation - Non-WASM placeholder for browser-only DOM helpers.
- Gesture
Recognizer - Pointer gesture recognizer.
- Inertia
- Scalar inertia animation.
- Inertia2D
- 2D inertia animation.
- Keyframe
Track - Scalar keyframe track.
- Keyframe
Track2D - Vector keyframe track.
- Keyframe
Track3D - Vector keyframe track.
- Keyframe
Track4D - Vector keyframe track.
- Layout
Animator - Non-WASM placeholder for browser-only DOM helpers.
- Morph
Path - Shape morphing between two point lists.
- Motion
Path - Tween-driven motion path.
- Observer
- Non-WASM placeholder for browser-only DOM helpers.
- RafDriver
- requestAnimationFrame timestamp driver for JavaScript-owned animations.
- Scroll
Driver - Scroll position driver for scroll-linked animations.
- Scroll
Smoother - Momentum-style scroll smoothing helper.
- Split
Text - Non-WASM placeholder for browser-only DOM helpers.
- Spring
- Scalar damped spring.
- Spring2D
- Vector damped spring.
- Spring3D
- Vector damped spring.
- Spring4D
- Vector damped spring.
- Tween
- Scalar tween from one number to another.
- Tween2D
- Vector tween.
- Tween3D
- Vector tween.
- Tween4D
- Vector tween.
- Tween
Batch - Batched scalar tween evaluator.
Functions§
- available_
easings - Return every available easing name.
- ease
- Apply an easing by name to normalized progress
t. - init_
animato - Initialize Animato’s optional browser runtime hooks.
- interpolate_
color - Interpolate two colors immediately.
- parse_
easing_ for_ js - Parse an easing name and return its canonical name.
- round_
to - Round a value to a fixed number of decimal places.
- snap_to
- Snap a value to a grid size.
- version
- Return the Animato package version.