Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions submissions/examples/ease-badge-pulse/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ease Badge Pulse Component

A highly performant, pure CSS notification badge component featuring an infinite expanding pulse ring layout.

## Features
- Zero JavaScript dependencies.
- Smooth hardware-accelerated animations (`transform` scale and `opacity`).
- 4 built-in state variants: `danger`, `success`, `warning`, and `info`.
- Anchored default `absolute` top-right positioning system built-in.
29 changes: 29 additions & 0 deletions submissions/examples/ease-badge-pulse/demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ease Badge Pulse Demo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="demo-wrapper">
<div class="icon-container">
<span class="icon">πŸ””</span>
<span class="ease-badge-pulse badge-danger"></span>
</div>
<div class="icon-container">
<span class="icon">πŸ‘€</span>
<span class="ease-badge-pulse badge-success"></span>
</div>
<div class="icon-container">
<span class="icon">⚠️</span>
<span class="ease-badge-pulse badge-warning"></span>
</div>
<div class="icon-container">
<span class="icon">πŸ’‘</span>
<span class="ease-badge-pulse badge-info"></span>
</div>
</div>
</body>
</html>
61 changes: 61 additions & 0 deletions submissions/examples/ease-badge-pulse/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.demo-wrapper {
display: flex;
justify-content: center;
align-items: center;
gap: 60px;
min-height: 100vh;
background-color: #f8f9fa;
}

.icon-container {
position: relative;
width: 48px;
height: 48px;
background: #ffffff;
border-radius: 12px;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ease-badge-pulse {
position: absolute;
top: -4px;
right: -4px;
width: 12px;
height: 12px;
border-radius: 50%;
z-index: 2;
}

.ease-badge-pulse::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: inherit;
animation: badge-pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
z-index: -1;
}

@keyframes badge-pulse-ring {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(2);
opacity: 0;
}
}

.badge-danger { background-color: #dc3545; }
.badge-success { background-color: #28a745; }
.badge-warning { background-color: #ffc107; }
.badge-info { background-color: #17a2b8; }

Loading