🪟 毛玻璃 CSS 生成器 — Glassmorphism 构建工具
Create CSS frosted glass / glassmorphism effects with live preview. Adjust blur, transparency, border opacity. Copy backdrop-filter CSS instantly.
The frosted glass effect (glassmorphism) uses backdrop-filter: blur() to blur content behind a semi-transparent element. Use the sliders to tune blur, opacity, border, and saturation — then copy the complete CSS block for your project.
How to Use
Adjust the controls
Use the sliders to set blur, background opacity, border opacity, radius, and saturation. Pick a tint color with the color swatch.
See the live preview
The glass card updates instantly. Experiment with values to achieve the look you want.
Copy the CSS
Click Copy CSS to copy the generated code to your clipboard. Paste it into your stylesheet.
Frequently Asked Questions
完整指南:CSS玻璃拟态生成器
什么是玻璃拟态?
玻璃拟态模拟磨砂玻璃效果:半透明背景加模糊(backdrop-filter: blur())、微妙边框和柔和阴影。由macOS Big Sur和Windows 11普及,在保持背景内容可见的同时创建视觉层次。
如何使用
- 调整背景透明度和模糊半径。
- 配置边框和圆角。
- 复制生成的CSS。
专业技巧
- 为Safari添加
-webkit-backdrop-filter前缀。 - 效果仅在图片或渐变背景上可见,纯色背景无效。
- 过度模糊会影响移动端性能——保持在8-20px之间。