Use 'getBoundingClientRect' for offsets.