motionos-core
v0.0.1
Published
Framework-agnostic performance-first animation engine
Downloads
103
Maintainers
Readme
motionos-core
Framework-agnostic animation engine (scheduler, spring, transform/opacity). Zero dependencies.
Most users want motionos-react for React components. Use this package directly only if you're building bindings for another framework or need the low-level API.
Install
npm install motionos-coreUsage
import { createEngine } from "motionos-core";
const engine = createEngine();
engine.register("my-key", element);
engine.animateFromTo(element, { opacity: 0, y: 20 }, { opacity: 1, y: 0 }, 300);
// or: engine.animateSpring(element, { opacity: 0 }, { opacity: 1 }, "bouncy");See the repo for full API and React usage.
