@codewell/html-element-screen-position
v0.0.1
Published
Calcualte the screen position of an html element
Downloads
1
Readme
@codewell/html-element-screen-position
Calcualte the screen position of an html element.
Installation
npm install @codewell/html-element-screen-position
Basic usage
import htmlElementScreenPosition from '@codewell/html-element-screen-position';
const htmlElement = // Get an element somehow
htmlElementScreenPosition(htmlElement)
// => {x: <some number>, y: <some number>}