Using getBoundingClientRect().