Mission Control Dashboard - Initial implementation
This commit is contained in:
13
node_modules/motion-dom/dist/es/view/utils/get-view-animations.mjs
generated
vendored
Normal file
13
node_modules/motion-dom/dist/es/view/utils/get-view-animations.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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 };
|
||||
//# sourceMappingURL=get-view-animations.mjs.map
|
||||
Reference in New Issue
Block a user