anthonyshort-offset

Get the x/y offset of an element

npm install anthonyshort-offset
2 downloads in the last week
5 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