Skip to content

Commit 9b0e300

Browse files
Create notification-badge.css
CSS component with the necessary classes for creating notification elements, styling and animation
1 parent 0f3b162 commit 9b0e300

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.notification-wrapper {
2+
position: relative;
3+
display: inline-block;
4+
}
5+
6+
.notification-icon {
7+
font-size: 24px;
8+
color: #333;
9+
}
10+
11+
.notification-badge {
12+
position: absolute;
13+
top: -6px;
14+
right: -6px;
15+
background-color: #e74c3c;
16+
color: white;
17+
font-size: 12px;
18+
padding: 2px 6px;
19+
border-radius: 50%;
20+
font-weight: bold;
21+
animation-duration: 0.6s;
22+
animation-fill-mode: both;
23+
}
24+
25+
.notification-pulse {
26+
animation-name: pulseScale;
27+
animation-iteration-count: infinite;
28+
animation-timing-function: ease-in-out;
29+
}
30+
31+
@keyframes pulseScale {
32+
0% { transform: scale(1); }
33+
50% { transform: scale(1.2); }
34+
100% { transform: scale(1); }
35+
}

0 commit comments

Comments
 (0)