<div class="animate glow delay-1"></div>
<div class="animate glow delay-2"></div>
<div class="animate glow delay-3"></div>
body {
display: flex;
height: 100vh;
gap: 2rem;
justify-content: center;
padding: 2rem;
place-items: center;
}
div {
background: #ff7a18;
height: 250px;
width: 250px;
}
.animate {
animation-duration: 0.75s;
animation-delay: 0.5s;
animation-name: animate-fade;
animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48);
animation-fill-mode: backwards;
}
/* Glow In */
.animate.glow {
animation-name: animate-glow;
animation-timing-function: ease;
}
@keyframes animate-glow {
0% {
opacity: 0;
filter: brightness(3) saturate(3);
transform: scale(0.8, 0.8);
}
100% {
opacity: 1;
filter: brightness(1) saturate(1);
transform: scale(1, 1);
}
}
.delay-1 {
animation-delay: 0.6s;
}
.delay-2 {
animation-delay: 0.7s;
}
.delay-3 {
animation-delay: 0.8s;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.