Core React primitives, hooks, and player for **OpenMotion** — the open-source programmatic video engine.
npm install @open-motion/coreCore React primitives, hooks, and player for OpenMotion — the open-source programmatic video engine.
- ⚛️ React Components: Use Composition, Sequence, Video, and more to build your video.
- 🎣 Powerful Hooks: Access useCurrentFrame, useVideoConfig, and getInputProps anywhere.
- ⏱️ Animation Utilities: High-performance spring animations and multi-segment interpolate functions.
- 🎞️ Interactive Player: Real-time preview and scrubbing during development.
``bash`
pnpm add @open-motion/coreor
npm install @open-motion/core
`tsx
import { Composition, Sequence, spring, useCurrentFrame, useVideoConfig } from "@open-motion/core";
const MyVideo = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const scale = spring({ frame, fps });
return (
}}>Hello OpenMotionLearn more at the main OpenMotion repository.