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

9 lines
313 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 };