Build CSS box shadows visually. Add multiple layers.
The CSS box-shadow property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radii, colour, and an optional inset keyword.
Modern design often uses multiple shadow layers to create depth that looks natural. A common technique combines a tight, dark shadow close to the element with a larger, softer shadow further away. This mimics how light behaves in the real world, where objects cast both sharp and diffused shadows.
Box shadows are rendered by the browser's compositor and are generally performant. However, very large blur values or many layered shadows on frequently animated elements can cause jank. For animations, consider using filter: drop-shadow() or promoting the element to its own compositing layer with will-change: box-shadow.
This tool runs entirely in your browser. No data is sent to any server.
ectoplasma.org ยท free tools