| Crates.io | skia-rs-skottie |
| lib.rs | skia-rs-skottie |
| version | 0.2.0 |
| created_at | 2026-01-03 18:48:00.15204+00 |
| updated_at | 2026-01-03 18:48:00.15204+00 |
| description | Lottie animation support for skia-rs (Skottie) |
| homepage | https://github.com/pegasusheavy/skia-rs |
| repository | https://github.com/pegasusheavy/skia-rs |
| max_upload_size | |
| id | 2020611 |
| size | 165,476 |
Lottie animation support for skia-rs, providing a Rust implementation of Skia's Skottie library.
use skia_rs_skottie::{Animation, AnimationBuilder};
// Load from JSON string
let animation = Animation::from_json(json_string)?;
// Get animation properties
println!("Duration: {} seconds", animation.duration());
println!("Frame rate: {} fps", animation.fps());
println!("Size: {}x{}", animation.width(), animation.height());
// Render a specific frame
let canvas = /* your canvas */;
animation.render(canvas, frame_time);
// Or seek to normalized time (0.0 - 1.0)
animation.seek(0.5); // Seek to 50%
animation.render(canvas, None);
MIT OR Apache-2.0