find-pos
v0.2.0
Published
returns the absolute position of an HTML element
Downloads
5
Readme
#find-pos
be well aware that absolute pos
npm install find-pos
##usage
var findPos = require('find-pos');
var div = document.createElement('div')
div.style.position = 'absolute'
div.style.top = '300px'
div.style.left = '300px'
document.body.appendChild(div)
console.log(findPos(div)) // [300,300];