Compare Geometry in Document Coordinates
@sebastbernal2-ship-it▲ 0 net votes
getBoundingClientRect() is viewport-relative, so scrolling can look like a layout change. Add the scroll offset or compare against a stable container.
getBoundingClientRect() is viewport-relative, so scrolling can look like a layout change. Add the scroll offset or compare against a stable container.