Overview
The basic animation example shows how to:- Initialize the Helios engine
- Use CSS keyframes for animations
- Sync animations with the document timeline
- Create a composition ready for rendering
Setup
How it works
Auto sync animations
By settingautoSyncAnimations: true, Helios automatically hijacks all CSS animations on the page and synchronizes them with the video timeline. This means:
- CSS animations pause, play, and seek in sync with the video
- Frame-perfect rendering is guaranteed
- No manual animation control needed
Document timeline binding
ThebindToDocumentTimeline() method connects Helios to the browser’s document timeline, allowing external tools like the Helios Renderer to drive the animation playback.
Key concepts
- Duration: Total length of your composition in seconds
- FPS: Frames per second for rendering (typically 30 or 60)
- autoSyncAnimations: Automatically sync CSS animations with Helios timeline
- bindToDocumentTimeline: Enable external control for rendering
Complete example
View the complete source code in the simple-animation directory.Next steps
- Try canvas-based animations for more complex graphics
- Explore CSS animations with React for component-based workflows
- Learn about animation helpers for advanced sequencing