node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

offset

offset

Get the xy offset of an element

Installation

$ component install anthonyshort/offset

API

offset(document.querySelector('#foo')).top
offset(document.querySelector('#bar')).left

License

MIT