@codewell/html-element-screen-position

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @codewell/html-element-screen-position

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

3.48 kB

Total Files

4

Last publish

Collaborators

  • fippli