offset

Get the x/y offset of an element

npm install offset
4 downloads in the last week
15 downloads in the last month

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

npm loves you