What Each box-shadow Value Actually Controls
box-shadow: 0 10px 25px -5px rgba(0,0,0,.25) packs five distinct concepts into one line: horizontal offset (0, no left/right shift), vertical offset (10px, how far down the shadow sits), blur radius (25px, how soft the edge is), spread radius (-5px, shrinks the shadow smaller than the element before blurring, common for a tighter-looking shadow), and color/opacity. Getting a shadow to look intentional rather than accidental usually means keeping the offset and blur proportional to each other and the opacity low - real-world shadows are almost always softer and fainter than a first attempt at hand-writing one.
The inset keyword flips all of this to render INSIDE the element's border instead of outside it, which is the standard technique for a "pressed in" or recessed look, like an active button state.
The Four Properties Behind a Convincing Glass Panel
Glassmorphism isn't one CSS property - it's four working together: a semi-transparent background (so some of what's behind shows through), backdrop-filter: blur() (which blurs specifically whatever is BEHIND the element, not the element itself), a subtle light border (mimicking the way real glass catches light at its edge), and a soft drop shadow (giving it depth against the page). Skip the backdrop-filter and you just have a semi-transparent box - skip the border and it reads as flat rather than as a distinct panel.
Because backdrop-filter needs the -webkit- prefix for Safari alongside the unprefixed standard property, real-world glassmorphism CSS always ships both declarations together - this tool generates both automatically so nothing is missing when you copy the output.
Frequently Asked Questions
A real-world shadow's edge is never perfectly sharp - light sources have some size and diffusion, softening the shadow's boundary. A box-shadow with 0 blur produces a hard-edged silhouette that reads as artificial; even a small blur radius (10-20px) makes a shadow look far more natural.
It's more GPU-intensive than most CSS effects since the browser has to continuously re-blur whatever's moving behind the element, so using it sparingly (a few key panels, not dozens of small elements) is the safer default for scroll performance, especially on lower-powered devices.
Yes - they're not mutually exclusive; a glass panel commonly still has its own soft box-shadow underneath it to separate it visually from the page, on top of the backdrop-filter blur that creates the glass look itself.
The shadow's color opacity controls how DARK/visible the whole shadow is, independent of its size or blur - a large, heavily blurred shadow at very low opacity can look more realistic than a small, sharp shadow at high opacity, since real shadows are usually both spread out and fairly faint.