ToolPal

CSS 毛玻璃效果生成器

在四种背景下实时预览,构建磨砂玻璃 UI 面板。输出跨浏览器兼容的 CSS,并附带让玻璃看起来更高级的 saturate() 小技巧。

0.25

玻璃面板

把这张卡片放到任意彩色背景上,玻璃就会折射出背后的所有内容。

毛玻璃需要三样东西:半透明的背景色调、足够强的 backdrop-filter 模糊,以及一道淡淡的边框高光。把它们叠在彩色底层(渐变、照片或几何图形)之上,就能得到苹果 Big Sur 推广开的高级磨砂玻璃效果。

使用方法

在四种背景下实时预览,构建磨砂玻璃 UI 面板。输出跨浏览器兼容的 CSS,并附带让玻璃看起来更高级的 saturate() 小技巧。

  1. 1Pick a background preset (gradient, photo, dark, geometric) — glassmorphism only looks good against something colorful, so test against more than one.
  2. 2Set the tint color and opacity. Most premium glass uses #ffffff at 0.10–0.25 opacity; a black tint at 0.20–0.40 reads as 'dark glass.'
  3. 3Adjust blur (12–20px is the sweet spot) and saturation (180% is the Apple default — anything below 130% looks washed out).
  4. 4Tune the border. A 1px white border at 0.20–0.30 opacity adds the highlight that makes glass look 3D.
  5. 5Toggle the soft drop shadow on if the panel needs to lift off the background. Then click Copy and paste the CSS into your stylesheet.

主要功能

  • Live preview against four different backgrounds — gradient, photo, dark, and geometric — so you see how the glass refracts in context
  • Independent control over tint color, opacity, blur, saturation, border color/opacity, corner radius, and shadow
  • Outputs both standard backdrop-filter and -webkit-backdrop-filter for full Safari + Chromium + Firefox support
  • Auto-includes the saturate(180%) trick that gives premium glass UIs their colorful depth
  • Pure client-side — no server, no signup, copy-paste-ready CSS

常见问题

了解更多