UNPKG

framer-motion

Version:

A simple and powerful React animation library

12 lines (9 loc) 421 B
import { isKeyframesTarget } from '../animation/utils/is-keyframes-target.mjs'; var isCustomValue = function (v) { return Boolean(v && typeof v === "object" && v.mix && v.toValue); }; var resolveFinalValueInKeyframes = function (v) { // TODO maybe throw if v.length - 1 is placeholder token? return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v; }; export { isCustomValue, resolveFinalValueInKeyframes };