:root {
--red: #F1564A;
}
.badge {
position: relative;
font-family: sans-serif;
display: inline-flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
background: var(--red);
border-radius: 50%;
color: #fff;
margin: 1em;
}
.pulsate::before {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
animation: pulse 2s ease infinite;
border-radius: 50%;
border: 5px double var(--red);;
}
@keyframes pulse {
0% {
transform: scale(1);
opacity: 1;
}
20% {
transform: scale(1.4);
opacity: 0.4;
}
40% {
transform: scale(1.6);
opacity: 0;
}
60% {
transform: scale(1.8);
opacity: 0;
}
80% {
transform: scale(2);
opacity: 0;
}
100% {
transform: scale(0);
opacity: 0;
}
}
Noice Pulsating effect it is!
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.