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

14 lines
532 B
Plaintext

import { GroupAnimationWithThen } from 'motion-dom';
import { createAnimationsFromSequence } from '../../sequence/create.mjs';
import { animateElements } from './animate-elements.mjs';
function animateSequence(definition, options) {
const animations = [];
createAnimationsFromSequence(definition, options).forEach(({ keyframes, transition }, element) => {
animations.push(...animateElements(element, keyframes, transition));
});
return new GroupAnimationWithThen(animations);
}
export { animateSequence };