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. Click a preset button (e.g. Frosted, Tinted, Dark) to start from a ready-made style。
  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。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.