element.getboundingClientRect.height is the rendered height when when transforms are applied. While element.offsetHeight returns the initial height of the element without any transforms. Both look alike but do different things. #codejournal#javascript