Files
pstreact/node_modules/motion-dom/dist/es/animation/utils/active-animations.mjs
2026-03-13 19:23:37 +03:00

11 lines
360 B
JavaScript

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 };
//# sourceMappingURL=active-animations.mjs.map