0.0.1 • Published 5 years ago

@codewell/html-element-screen-position v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

@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>}