dom-find

0.3.5 • Public • Published

Find DOM utils

Utils for finding DOM elements. Used by react-stickydiv

var util = require('dom-find');
 
// util.findPos(document.getElementById("element"));
// [0,100]
 
// util.findPosRelativeToViewport(document.getElementById("element"));
// [50,-200]
 

You can also use this with React

var util = require('dom-find');
 
// util.findPos(React.findDOMNode());
// [0,100]
 
// util.findPosRelativeToViewport(React.findDOMNode());
// [50,-200]
 

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.5248latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.5248
0.3.40
0.3.30
0.3.20
0.3.10

Package Sidebar

Install

npm i dom-find

Weekly Downloads

248

Version

0.3.5

License

ISC

Last publish

Collaborators

  • svenanders