UNPKG

motion-dom

Version:
12 lines (9 loc) • 329 B
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 }; //# sourceMappingURL=style-computed.mjs.map