Skip to content

tomerdmnt/offset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

offset

Get element offset

var offset = require('offset');

var o = offset(document.querySelector('div'));
console.log('x: ' + o.x);
console.log('y: ' + o.y);

Installation

$ component install tomerdmnt/offset

API

offset(el)

gets an element. returns an object with properties x and y.

License

MIT

About

Get element offset component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published