@codewell/html-element-screen-position
v0.0.1
Published
Calcualte the screen position of an html element
Downloads
6
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>}