offset
Get offset of a dom element within the viewport.
Installation
$ component install timoxley/offset
API
offset(el)
Get offset of an element within the viewport.
Example:
var offset = var target = documentconsole// => {top: 69, left: 108}
Credit
Code adapted from jQuery.
License
MIT