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
- Host: GitHub
- URL: https://github.com/codewell/html-element-screen-position
- Owner: codewell
- License: mit
- Created: 2019-10-21T11:32:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T12:09:27.000Z (over 6 years ago)
- Last Synced: 2025-09-29T19:42:38.602Z (9 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: }
```