An explosive particle effect that radiates outward from a central point. Perfect for celebration effects, click interactions, or dynamic backgrounds.
<div class="particle-burst">
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
</div>
.particle-burst {
position: relative;
width: 200px;
height: 200px;
}
.particle {
position: absolute;
width: 10px;
height: 10px;
background: #ff6b6b;
border-radius: 50%;
top: 50%;
left: 50%;
animation: burst 2s ease-out infinite;
}
.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 0.1s; }
.particle:nth-child(3) { animation-delay: 0.2s; }
.particle:nth-child(4) { animation-delay: 0.3s; }
.particle:nth-child(5) { animation-delay: 0.4s; }
.particle:nth-child(6) { animation-delay: 0.5s; }
.particle:nth-child(7) { animation-delay: 0.6s; }
.particle:nth-child(8) { animation-delay: 0.7s; }
@keyframes burst {
0% {
transform: translate(-50%, -50%) scale(0);
opacity: 1;
}
100% {
transform: translate(
calc(-50% + var(--x, 100px)),
calc(-50% + var(--y, 100px))
) scale(1);
opacity: 0;
}
}
.particle:nth-child(1) { --x: 80px; --y: 0px; }
.particle:nth-child(2) { --x: 56px; --y: 56px; }
.particle:nth-child(3) { --x: 0px; --y: 80px; }
.particle:nth-child(4) { --x: -56px; --y: 56px; }
.particle:nth-child(5) { --x: -80px; --y: 0px; }
.particle:nth-child(6) { --x: -56px; --y: -56px; }
.particle:nth-child(7) { --x: 0px; --y: -80px; }
.particle:nth-child(8) { --x: 56px; --y: -56px; }