CSS Glassmorphism & Shadow Generator

Generate modern frosted-glass styling and smooth box-shadow effects. Adjust sliders for live preview and copy cross-browser CSS.

Glass Card Preview

Adjust sliders to see real-time updates

CSS Generator: related tools

A slider-driven generator for one style in particular: glassmorphism, the frosted-glass card look. Four controls set the background blur, the translucent white fill, the shadow blur and the shadow opacity, and the page writes the six CSS declarations you need - including the -webkit- prefix for Safari - next to a live preview card. The preview and the code are produced in the page.

CSS Generator: how to use it

  1. Drag Background Blur to set how strongly the surface behind the card is blurred.
  2. Drag Backdrop Opacity for the white fill, then the shadow blur and shadow opacity sliders.
  3. Watch the preview card over the gradient update as you move them.
  4. Press Copy CSS to copy all six declarations at once.

CSS Generator: worked example

default sliders: blur 12px, opacity 0.25, shadow blur 24px, shadow opacity 0.15becomesbackground: rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.375); box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.15); border-radius: 12px;

Verified: the border alpha is the fill opacity times 1.5, and 0.25 x 1.5 = 0.375 exactly. Border radius is fixed at 12px.

CSS Generator: when to use it

CSS Generator: what it does not do