Skip to main content
Lottie animations can be synchronized with Helios by loading them with autoplay disabled and manually seeking to specific time positions based on Helios frame updates.

Installation

Install Lottie Web alongside Helios:

Basic integration

The integration involves:
  1. Loading a Lottie animation with autoplay: false and loop: false
  2. Subscribing to Helios updates
  3. Converting frame numbers to milliseconds
  4. 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

Use goToAndStop with time in milliseconds:

Renderer options

Lottie supports multiple renderers:

SVG renderer

Best for:
  • Scalable vector graphics
  • High quality at any resolution
  • Complex paths and shapes

Canvas renderer

Best for:
  • Better performance with many elements
  • Raster effects
  • Particle systems

HTML renderer

Best for:
  • 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
This pattern works with any Lottie animation exported from After Effects or other tools that support the Lottie format.