find-pos

0.2.0 • Public • Published

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];
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    1

Package Sidebar

Install

npm i find-pos

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • johnnyscript