Back to Components

Meteor Shower

Shooting stars streaking across the sky with glowing trails. Creates a magical atmosphere for space-themed or nighttime designs.

Particle Effects Space

Live Preview

HTML

<div class="meteor-shower">
    <div class="meteor"></div>
    <div class="meteor"></div>
    <div class="meteor"></div>
</div>

CSS

.meteor-shower {
    position: relative;
    width: 100%;
    height: 300px;
    background: #0a0a1a;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, white, transparent);
    border-radius: 50%;
    animation: meteorFall 3s linear infinite;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

.meteor:nth-child(1) {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.meteor:nth-child(2) {
    top: 0;
    left: 50%;
    animation-delay: 1s;
}

.meteor:nth-child(3) {
    top: 0;
    left: 80%;
    animation-delay: 2s;
}

@keyframes meteorFall {
    0% {
        transform: translateY(-100px) translateX(0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) translateX(100px) rotate(45deg);
        opacity: 0;
    }
}