Files
NapCatQQ/.pnpm-store/v3/files/b0/dd449d23e7205f4fbffd36dcb0b799f6be82d1e95a1dfbd307964cbf7e40288a6c0dd2582abe4307e18e9c86a950907140f2f9e42ba97d4f8431f5101fdf2a
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
551 B
Plaintext

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 };