An open API service indexing awesome lists of open source software.

https://github.com/codewell/html-element-screen-position

Calcualte the screen position of an html element
https://github.com/codewell/html-element-screen-position

Last synced: 7 months ago
JSON representation

Calcualte the screen position of an html element

Awesome Lists containing this project

README

          

# @codewell/html-element-screen-position
Calcualte the screen position of an html element.

## Installation
```JavaScript
npm install @codewell/html-element-screen-position
```

## Basic usage
```JavaScript
import htmlElementScreenPosition from '@codewell/html-element-screen-position';

const htmlElement = // Get an element somehow

htmlElementScreenPosition(htmlElement)
// => {x: , y: }
```