Blame view

天文台pc/tianwentai-ui/node_modules/motion-dom/dist/es/view/utils/get-view-animations.mjs 419 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
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