Get element offset
var offset = require('offset');
var o = offset(document.querySelector('div'));
console.log('x: ' + o.x);
console.log('y: ' + o.y);
$ component install tomerdmnt/offset
gets an element. returns an object with properties x and y.
MIT