Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The previousRect
read-only property of the LayoutShiftAttribution
interface returns a DOMRectReadOnly
object representing the position of the element before the shift.