first commit
This commit is contained in:
14
node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
generated
vendored
Normal file
14
node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { spring } from 'motion-dom';
|
||||
import { createAnimationsFromSequence } from '../sequence/create.mjs';
|
||||
import { animateSubject } from './subject.mjs';
|
||||
|
||||
function animateSequence(sequence, options, scope) {
|
||||
const animations = [];
|
||||
const animationDefinitions = createAnimationsFromSequence(sequence, options, scope, { spring });
|
||||
animationDefinitions.forEach(({ keyframes, transition }, subject) => {
|
||||
animations.push(...animateSubject(subject, keyframes, transition));
|
||||
});
|
||||
return animations;
|
||||
}
|
||||
|
||||
export { animateSequence };
|
||||
Reference in New Issue
Block a user