Expand description
Animation primitives: tweens, springs, keyframes, sequences, and staggers.
All animations are tick-based — call the value() method each frame with
the current Context::tick to advance. No timers
or threads involved.
Structs§
- Keyframes
- Multi-stop keyframe animation over a fixed tick duration.
- Sequence
- Sequential timeline that chains multiple animation segments.
- Spring
- Spring physics animation that settles toward a target value.
- Stagger
- Parallel staggered animation where each item starts after a fixed delay.
- Tween
- Linear interpolation between two values over a duration, with optional easing.
Enums§
- Loop
Mode - Defines how an animation behaves after reaching its end.
Functions§
- ease_
in_ cubic - Cubic ease-in: slow start, fast end (stronger than quadratic).
- ease_
in_ out_ cubic - Cubic ease-in-out: slow start, fast middle, slow end (stronger than quadratic).
- ease_
in_ out_ quad - Quadratic ease-in-out: slow start, fast middle, slow end.
- ease_
in_ quad - Quadratic ease-in: slow start, fast end.
- ease_
linear - Linear easing: constant rate from 0.0 to 1.0.
- ease_
out_ bounce - Bounce ease-out: simulates a ball bouncing before coming to rest.
- ease_
out_ cubic - Cubic ease-out: fast start, slow end (stronger than quadratic).
- ease_
out_ elastic - Elastic ease-out: overshoots the target and oscillates before settling.
- ease_
out_ quad - Quadratic ease-out: fast start, slow end.
- lerp
- Linear interpolation between
aandbat positiont(0.0..=1.0).