Skip to content

Retrieve the position of an element relative to the page.

Notifications You must be signed in to change notification settings

tylerjpeterson/page-position

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

100% test coverage

page-position

Retrieve the position of an element relative to the page.

Returns an object describing a rendered element's top, right, bottom, and left distances from the document's polar origin.

Installation

Install via npm:

$ npm i page-position --save

Usage

var pagePosition = require('page-position');
pagePosition(document.getElementById('target'));

About

Retrieve the position of an element relative to the page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published