UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

12 lines (9 loc) 457 B
import { isMotionValue, motionValue } from 'motion-dom'; import { animateMotionValue } from '../interfaces/motion-value.mjs'; function animateSingleValue(value, keyframes, options) { const motionValue$1 = isMotionValue(value) ? value : motionValue(value); motionValue$1.start(animateMotionValue("", motionValue$1, keyframes, options)); return motionValue$1.animation; } export { animateSingleValue }; //# sourceMappingURL=single-value.mjs.map