Skip to main content
Helios integrates beautifully with Svelte’s reactive system through stores that automatically update your animations.

Quick start

1

Install dependencies

2

Create the Helios store

lib/store.js
3

Create your first animation

App.svelte

Animation approaches

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

Create readable stores for Helios state to prevent accidental modifications:
Leverage Svelte’s $: reactive statements for derived animation values:
Always remove event listeners in onDestroy:
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