Get the x/y offset of an element
npm install offset
Get the xy offset of an element
$ component install anthonyshort/offset
offset(document.querySelector('#foo')).top offset(document.querySelector('#bar')).left
MIT