dashboard/frontend/node_modules/motion-dom/dist/es/animation/utils/active-animations.mjs

10 lines
313 B
JavaScript
Raw Normal View History

2025-12-16 08:16:27 +09:00
const animationMaps = new WeakMap();
const animationMapKey = (name, pseudoElement = "") => `${name}:${pseudoElement}`;
function getAnimationMap(element) {
const map = animationMaps.get(element) || new Map();
animationMaps.set(element, map);
return map;
}
export { animationMapKey, getAnimationMap };