Skip to main content

Module animation

Module animation 

Source
Expand description

SVG geometry primitives (points, curves, rects, vectors) and animation interpolation functions.

Structs§

AnimationTimingBezier
A cubic-bezier(x1, y1, x2, y2) control-point pair in PERMILLE.
InterpolateResolver
Holds context needed to resolve animation interpolation relative to parent and current rects.
SpringCurve
Mass-spring-damper parameters for AnimationInterpolationFunction::Spring.
StyleAnimation
One entry of animation / -azul-animation-in / -azul-animation-out.
StyleAnimationVec
StyleAnimationVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
SvgCubicCurve
A cubic bezier curve defined by start, two control points, and end point.
SvgPoint
A 2D point with f32 coordinates, used in SVG paths and bezier curves.
SvgQuadraticCurve
A quadratic bezier curve defined by start, one control point, and end point.
SvgRect
An axis-aligned rectangle with optional rounded corners.
SvgVector
A 2D vector with f64 coordinates, used for tangent and direction calculations.

Enums§

AnimationInterpolationFunction
Represents an animation timing function.
AnimationIterationCount
How many times an animation plays. Infinite is what makes a CSS spinner expressible; presence EXITS clamp it to one run (an infinite exit would never reap its zombie).
AnimationTiming
Timing for StyleAnimation.
OptionStyleAnimation
OptionSvgPoint
StyleAnimationParseError
StyleAnimationParseErrorOwned
StyleAnimationVecDestructor

Functions§

parse_style_animation
Parse <name> <duration> [<delay>] [<timing>] [infinite | <count>].
parse_style_animation_vec
The full animation value: a COMMA-SEPARATED list, one entry per animation, so different properties can animate on different clocks (animation: width 1s linear, color 2s ease-out).

Type Aliases§

StyleAnimationVecDestructorType