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

Readme

Keywords

none

Package Sidebar

Install

npm i find-pos

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • johnnyscript