Get offset of an element within the viewport