# Glassmorphism Card

> A frosted glass card using backdrop-filter blur over a colorful background.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: glass, glassmorphism, blur, frosted, backdrop-filter
- Live preview: https://copy-css.com/snippets/glass-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="glass-card">
  <h3>Glassmorphism</h3>
  <p>Frosted glass with backdrop-filter.</p>
</div>
```

## CSS

```css
.glass-card {
  width: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: system-ui, sans-serif;
}

.glass-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.glass-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}
```

## Notes

- This CSS Glassmorphism Card is 24 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses box shadows and backdrop filters.
- backdrop filters: Includes the -webkit- prefix for older Safari.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
