Component
Glass Card
Glassmorphism card with blur effect, gradient background, translucent elements, and frosted panels.
- Component
- Tailwind
- HTML
- MIT
Preview
Live component
9:41 100%
devsnips.dev/library/tailwind/components/cards/glass-card/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Cards/glass-card Tailwind/Components/Cards/glass-card <div class="relative rounded-2xl overflow-hidden">
<div class="absolute inset-0 bg-gradient-to-br from-violet-500 via-purple-500 to-pink-500"></div>
<div class="absolute inset-0 backdrop-blur-xl"></div>
<div class="relative p-6">
<div class="flex items-center gap-4 mb-6">
<div class="w-14 h-14 bg-white/20 backdrop-blur rounded-2xl flex items-center justify-center">
<svg class="w-7 h-7 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
</svg>
</div>
<div>
<h3 class="text-white font-semibold text-lg">Lightning Performance</h3>
<p class="text-white/70 text-sm">Optimized for speed</p>
</div>
</div>
<p class="text-white/80 text-sm leading-relaxed mb-6">
Built with cutting-edge technology to deliver the fastest load times and smoothest user experience possible.
</p>
<div class="grid grid-cols-3 gap-3 mb-6">
<div class="bg-white/10 backdrop-blur rounded-xl p-3 text-center">
<p class="text-2xl font-bold text-white">50ms</p>
<p class="text-xs text-white/60">Response</p>
</div>
<div class="bg-white/10 backdrop-blur rounded-xl p-3 text-center">
<p class="text-2xl font-bold text-white">99.9%</p>
<p class="text-xs text-white/60">Uptime</p>
</div>
<div class="bg-white/10 backdrop-blur rounded-xl p-3 text-center">
<p class="text-2xl font-bold text-white">10M+</p>
<p class="text-xs text-white/60">Users</p>
</div>
</div>
<button class="w-full py-3 bg-white/20 backdrop-blur text-white font-semibold rounded-xl hover:bg-white/30 transition-colors border border-white/20">
Learn More
</button>
</div>
</div> # Glass Card
Glassmorphism content card.
## Preview
Open `preview.html` for a standalone demonstration.
## Features
- Frosted / glass surface
- Soft border and blur
## Usage
```bash
npx devsnips add Tailwind/Components/Cards/glass-card
```
Copy from `code.html`.
## Customization
- Backdrop blur, opacity, border
## Accessibility
- Ensure text contrast on the glass surface
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` · `preview.html` · `metadata.json` · `README.md` 41 lines UTF-8 · LF · Spaces: 2
Continue browsing