Quick start
Animation approaches
- Signal-driven animations
- Canvas animations
Animate using Solid’s reactive signals:
Animation helpers
Helios provides utility functions for common animation patterns:Fine-grained reactivity
Solid’s fine-grained reactivity means only the specific DOM nodes that depend on changing signals will update:Best practices
Initialize Helios globally
Initialize Helios globally
Create the Helios instance on
window in your entry file for global access:Use createMemo for derived values
Use createMemo for derived values
Always use
createMemo for computed animation values to ensure efficient updates:Clean up subscriptions
Clean up subscriptions
Use
onMount and onCleanup to manage Helios subscriptions:Use createEffect for side effects
Use createEffect for side effects
Use
createEffect for canvas drawing and other side effects:TypeScript support
Helios provides full TypeScript support for Solid:Performance benefits
Solid’s fine-grained reactivity provides excellent performance for video animations:- No Virtual DOM: Direct DOM updates mean less overhead
- Surgical updates: Only affected DOM nodes update
- Automatic dependency tracking: Solid knows exactly what needs to update
- Compiled reactivity: Reactive code is optimized at build time
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