single-value.mjs 471 B

1234567891011
  1. import { motionValue } from 'motion-dom';
  2. import { isMotionValue } from '../../value/utils/is-motion-value.mjs';
  3. import { animateMotionValue } from '../interfaces/motion-value.mjs';
  4. function animateSingleValue(value, keyframes, options) {
  5. const motionValue$1 = isMotionValue(value) ? value : motionValue(value);
  6. motionValue$1.start(animateMotionValue("", motionValue$1, keyframes, options));
  7. return motionValue$1.animation;
  8. }
  9. export { animateSingleValue };