Skip to main content

Crate animato_js

Crate animato_js 

Source
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§

ColorTween
Perceptual color tween.
DragState
Pointer drag tracker.
Draggable
Non-WASM placeholder for browser-only DOM helpers.
FlipAnimation
Non-WASM placeholder for browser-only DOM helpers.
GestureRecognizer
Pointer gesture recognizer.
Inertia
Scalar inertia animation.
Inertia2D
2D inertia animation.
KeyframeTrack
Scalar keyframe track.
KeyframeTrack2D
Vector keyframe track.
KeyframeTrack3D
Vector keyframe track.
KeyframeTrack4D
Vector keyframe track.
LayoutAnimator
Non-WASM placeholder for browser-only DOM helpers.
MorphPath
Shape morphing between two point lists.
MotionPath
Tween-driven motion path.
Observer
Non-WASM placeholder for browser-only DOM helpers.
RafDriver
requestAnimationFrame timestamp driver for JavaScript-owned animations.
ScrollDriver
Scroll position driver for scroll-linked animations.
ScrollSmoother
Momentum-style scroll smoothing helper.
SplitText
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.
TweenBatch
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.