animate-style.mjs 480 B

123456789101112
  1. import { GroupAnimationWithThen } from 'motion-dom';
  2. import { animateElements } from './animate-elements.mjs';
  3. const createScopedWaapiAnimate = (scope) => {
  4. function scopedAnimate(elementOrSelector, keyframes, options) {
  5. return new GroupAnimationWithThen(animateElements(elementOrSelector, keyframes, options, scope));
  6. }
  7. return scopedAnimate;
  8. };
  9. const animateMini = /*@__PURE__*/ createScopedWaapiAnimate();
  10. export { animateMini, createScopedWaapiAnimate };