Installation
Install Lottie Web alongside Helios:Basic integration
The integration involves:- Loading a Lottie animation with
autoplay: falseandloop: false - Subscribing to Helios updates
- Converting frame numbers to milliseconds
- Seeking the Lottie animation to the exact time
Integration pattern
Load animation without autoplay
Disable automatic playback so Helios can control the animation:Frame to time conversion
Convert Helios frame numbers to milliseconds:Seek to exact position
UsegoToAndStop with time in milliseconds:
Renderer options
Lottie supports multiple renderers:SVG renderer
- Scalable vector graphics
- High quality at any resolution
- Complex paths and shapes
Canvas renderer
- Better performance with many elements
- Raster effects
- Particle systems
HTML renderer
- DOM-based animations
- Text animations
- CSS filter effects
HTML structure
Provide a container element for the Lottie animation:Why this works
By disabling autoplay and manually seeking the Lottie animation, Helios can:- Ensure deterministic frame-by-frame rendering
- Enable scrubbing through the animation
- Support export to video formats
- Maintain synchronization with other animated elements