yo(selector).offset()
Return an object with the current dimensions
var offset = yo('.myclass').offset();
console.log(offset.left);
console.log(offset.top);
console.log(offset.height);
console.log(offset.width);
Go to index
Return an object with the current dimensions
var offset = yo('.myclass').offset();
console.log(offset.left);
console.log(offset.top);
console.log(offset.height);
console.log(offset.width);
Go to index