Box Shadow Performance

Shadow Type

"Changing box-shadow alters the geometry of the element. That means that it may affect the position or size of other elements on the page, both of which require the browser to perform layout operations.

Once those layout operations have completed any damaged pixels will need to be painted and the page must then be composited together."

— box-shadow, csstriggers.com

Check it out: