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

13 lines
370 B
Plaintext

function filterViewAnimations(animation) {
const { effect } = animation;
if (!effect)
return false;
return (effect.target === document.documentElement &&
effect.pseudoElement?.startsWith("::view-transition"));
}
function getViewAnimations() {
return document.getAnimations().filter(filterViewAnimations);
}
export { getViewAnimations };