ICT30016-Assignment-3/node_modules/motion-dom/dist/es/view/utils/get-view-animations.mjs
dlawler489 a79a6afd34 intial
intial
2025-09-16 12:09:52 +10:00

12 lines
370 B
JavaScript

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