Expand description
Lottie animation support for skia-rs (Skottie).
This crate provides Lottie/Bodymovin animation playback capabilities, compatible with Skia’s Skottie library.
§Features
- JSON Parsing: Full Lottie JSON format support
- Animation Playback: Timeline-based animation with frame interpolation
- Shape Layers: Paths, fills, strokes, gradients
- Transform Animations: Position, scale, rotation, opacity
- Masks & Mattes: Alpha masks, track mattes
§Example
ⓘ
use skia_rs_skottie::Animation;
let animation = Animation::from_json(json_string)?;
animation.seek_frame(30.0);
animation.render(&mut canvas);Re-exports§
pub use animation::Animation;pub use animation::AnimationBuilder;pub use animation::AnimationStats;pub use keyframe::Easing;pub use keyframe::Keyframe;pub use keyframe::KeyframeValue;pub use layers::Layer;pub use layers::LayerType;pub use mask::Mask;pub use mask::MaskMode;pub use mask::MatteMode;pub use model::LottieModel;pub use render::RenderContext;pub use shapes::Shape;pub use shapes::ShapeGroup;pub use transform::Transform;
Modules§
- animation
- Animation playback and control.
- expression
- Expression evaluation for Lottie animations.
- keyframe
- Keyframe animation and interpolation.
- layers
- Layer types for Lottie animations.
- mask
- Mask and matte support for Lottie animations.
- model
- Lottie JSON data model.
- render
- Canvas rendering for Lottie animations.
- shapes
- Shape layers for Lottie animations.
- transform
- Transform animations for Lottie layers.
Enums§
- Skottie
Error - Errors that can occur when working with Lottie animations.
Type Aliases§
- Result
- Result type for Skottie operations.