Back to Snippets

Glassmorphism Card Snippet.

A frosted-glass profile card built with pure CSS backdrop-filter. Features animated background blobs, a hover lift effect, avatar, stats row, and a glass button. No JavaScript required.

How to Use?
Paste the HTML into your page and add the CSS. Place the .scene wrapper over any colorful or blurred background for the glass effect to show. Swap out the avatar, name, and stats with your own content.

Credits
Built using CSS backdrop-filter, rgba backgrounds, and CSS keyframe animations.

<div class="scene">
  <div class="glass-card">
    <div class="card-avatar">
      <img src="https://i.pravatar.cc/80" alt="avatar" />
    </div>
    <h2 class="card-name">Alex Rivera</h2>
    <p class="card-role">UI Designer & Developer</p>
    <div class="card-stats">
      <div class="stat">
        <span class="stat-value">248</span>
        <span class="stat-label">Projects</span>
      </div>
      <div class="stat-divider"></div>
      <div class="stat">
        <span class="stat-value">14k</span>
        <span class="stat-label">Followers</span>
      </div>
      <div class="stat-divider"></div>
      <div class="stat">
        <span class="stat-value">91%</span>
        <span class="stat-label">Rating</span>
      </div>
    </div>
    <button class="card-btn">Follow</button>
  </div>
</div>