Quick start
Animation approaches
- DOM animations
- Canvas animations
Animate Svelte components using reactive store subscriptions:
Animation helpers
Helios provides utility functions for common animation patterns:Svelte 5 runes
For Svelte 5, you can use runes for reactive state:Sequencing patterns
Create sequences manually using reactive statements:Best practices
Use readable stores
Use readable stores
Create readable stores for Helios state to prevent accidental modifications:
Use reactive statements for animations
Use reactive statements for animations
Leverage Svelte’s
$: reactive statements for derived animation values:Clean up event listeners
Clean up event listeners
Always remove event listeners in
onDestroy:Use style directives
Use style directives
Use Svelte’s
style: directive for dynamic inline styles:TypeScript support
Helios works seamlessly with Svelte and TypeScript:Next steps
Animation helpers
Learn about interpolation, spring physics, and easing functions
Canvas rendering
Create high-performance canvas animations
Sequences
Build complex multi-scene animations
Export videos
Render your animations to video files