Skip to main content
Helios provides first-class support for React through hooks and components that integrate seamlessly with React’s declarative programming model.

Quick start

1

Install dependencies

2

Create the useVideoFrame hook

hooks/useVideoFrame.ts
3

Create your first animation

App.tsx

Animation approaches

Animate React components using inline styles and the useVideoFrame hook:

Animation helpers

Helios provides utility functions for common animation patterns:

Sequencing components

Sequence component

Create time-based sequences that show/hide content:
components/Sequence.tsx

Series component

Automatically sequence child components one after another:
components/Series.tsx

Frame context

Create a context for sharing frame state:
components/FrameContext.tsx

Usage example

Best practices

Create the Helios instance outside your component to avoid recreating it on every render:
Always call bindToDocumentTimeline() to enable external control by the player or renderer:
Attach the Helios instance to window for easy debugging and player integration:
React 18+ Strict Mode causes double-mounting in development. This is fine for Helios, but be aware of potential duplicate subscriptions during development.

TypeScript support

Helios is written in TypeScript and provides full type definitions:

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