node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

offset

Get the x/y offset of an element

offset

Get the xy offset of an element

$ component install anthonyshort/offset
offset(document.querySelector('#foo')).top
offset(document.querySelector('#bar')).left

MIT