UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

43 lines (41 loc) • 718 B
function LinearKeyframe(to, options) { return { kind: "linear", to, duration: options.duration, timingCurve: options.timingCurve }; } function SpringKeyframe(to, options = {}) { return { kind: "spring", to, ...options }; } function CubicKeyframe(to, options) { return { kind: "cubic", to, ...options }; } function MoveKeyframe(to) { return { kind: "move", to }; } function KeyframeTrack(keyPath, content) { if (typeof keyPath === "string") return { kind: "track", keyPath, content: content ?? [] }; return { kind: "track", content: keyPath }; } export { CubicKeyframe, KeyframeTrack, LinearKeyframe, MoveKeyframe, SpringKeyframe }; //# sourceMappingURL=keyframes.mjs.map