Tool Hub

玻璃拟态生成

通过透明度和模糊控制生成 Glassmorphism CSS

预设

Glassmorphism 效果需要背景的颜色和图像透出才能呈现,因此预览特意放在彩色渐变背景之上。

玻璃预览

backdrop-filter · rgba background

CSS
.glass {
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 12px;
}

使用方法

  1. 上传并选择
  2. Adjust background opacity, blur radius, border opacity, and background color using the controls.
  3. Watch the card preview update live against the gradient background.
  4. Copy the generated CSS (backdrop-filter, background, border) and paste it into your project.

示例

  • Setting blur 12px, background rgba(255,255,255,0.15), border rgba(255,255,255,0.3) produces a subtle frosted-glass card effect.
  • The Dark preset applies a dark semi-transparent background with a muted blur, suitable for dark-themed dashboards.

生产环境使用前请验证输出。无担保 — 参见 条款.