Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

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

Keywords

none

Install

npm i find-pos

DownloadsWeekly Downloads

1

Version

0.2.0

License

none

Last publish

Collaborators

  • avatar