What problem does it solve?
This Skill provides reusable patterns to integrate Helios into React projects, enabling React components to drive Helios timelines, subscribe to frame updates, and render on canvases with minimal friction.
Core Features & Use Cases
- React hook integration: create hooks like useVideoFrame to access Helios frame data.
- Composition components: build components that initialize Helios and bind to the document timeline, exposing current frame state for rendering.
- Performance considerations: prefer subscribing to state and rendering imperatively to avoid excessive React re-renders.
- Use Case: Create interactive React canvases or UI animations powered by Helios timelines.
Quick Start
Install and import Helios in your React project, then follow these steps:
- Create a useVideoFrame hook to subscribe to Helios and expose the current frame.
- Implement a composition component that initializes Helios and binds to the timeline.
- Render frames by subscribing to Helios and drawing onto a <canvas> or similar surface.