animationcore
v0.0.1
Published
Framework-agnostic keyframe data and value sampling.
Maintainers
Readme
Animation Core
Framework-agnostic keyframe data and value sampling.
animationcore stores animation as serializable keyframes and samples tracks into values. It supports numbers, numeric arrays, and nested plain records, with discrete fallback for other values.
import { sampleKeyframes } from "animationcore";
sampleKeyframes([
{ time: 0, value: 0 },
{ time: 1, value: 100, easing: "ease-out" },
], 0.5); // 75Times are in seconds. Sampling is synchronous and pure; playback clocks and schedulers belong to an adapter.
MIT
