Skip to content

Glass Notification Toast

A floating glass toast notification with an icon, message, and auto-dismiss progress bar.

Glass Notification Toast

by FreeCsStyles Dev's

GlassmorphismGlassmorphism
🌐
#glass#toast#notification#alert

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/glass-notification-toast.

<iframe src="/embed/glass-notification-toast" sandbox="allow-scripts" loading="lazy" title="Glass Notification Toast" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Glass Notification Toast. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<div class="glass-toast">
  <div class="toast-icon">✓</div>
  <div class="toast-body">
    <div class="toast-title">Changes Saved</div>
    <div class="toast-msg">Your profile has been updated successfully.</div>
  </div>
  <button class="toast-close">✕</button>
  <div class="toast-progress"></div>
</div>
CSS
.glass-toast {
  position: relative;
  max-width: 340px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.toast-body { flex: 1; }

.toast-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.toast-msg { font-size: 12px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }

.toast-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  border-radius: 3px;
  animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

Where Glass Notification Toast fits

  • Alerts
  • Notifications
  • Feedback Messages

Topics

  • #glass
  • #toast
  • #notification
  • #alert