Files
react/node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
2025-12-28 20:50:08 +00:00

11 lines
285 B
JavaScript

import { isCSSVar } from './is-css-var.mjs';
function getComputedStyle(element, name) {
const computedStyle = window.getComputedStyle(element);
return isCSSVar(name)
? computedStyle.getPropertyValue(name)
: computedStyle[name];
}
export { getComputedStyle };