node package manager
Loosely couple your services. Use Orgs to version and reuse your 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