Expand description
§Slik
slik is a Motion-inspired animation framework for Leptos.
v0.2 is built around three layers:
MotionValuefor low-level scalar animation.use_motionfor binding motion styles to typed LeptosNodeRefvalues.htmlfor thin motion-enabled HTML components generated on top of the same binder.
The crate deliberately keeps the animation property surface small and explicit: opacity plus transform-related properties such as translation, scale, and rotation.
For day-to-day use, import the prelude module.
Modules§
- bezier
- Cubic-bezier utilities used by easing-based transitions. Cubic-bezier curve solving utilities.
- bind
- Binder-first motion APIs for attaching animations to typed DOM nodes. Binder-first motion APIs.
- driver
- Keyframe definitions and driver-level transition types. Driver-level animation types.
- easing
- Easing presets and custom cubic-bezier support. Easing presets and cubic-bezier helpers.
- html
- Thin motion-enabled HTML component sugar built on
bind::use_motion. Motion-enabled HTML component sugar. - motion_
value - Low-level scalar motion primitive. Low-level scalar motion primitive.
- prelude
- Common imports for
slikapplications. - style
- Typed motion style properties and style composition helpers. Motion style types.
- transition
- Transition configuration types for motion bindings and values. Transition configuration types.