UNPKG

seamscroll

Version:
9 lines (7 loc) 169 B
const getStyle = (dom, name) => { let elem = dom.currentStyle ? dom.currentStyle : window.getComputedStyle(dom, null) return elem[name] } export default getStyle