<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Efekt</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
            height: 100vh;
            overflow: hidden;
            font-family: sans-serif;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        h1 {
            z-index: 10;
            font-size: 3rem;
            letter-spacing: 5px;
            font-weight: 300;
            opacity: 0.8;
            text-shadow: 0 0 15px rgba(255,255,255,0.3);
        }

        .particle {
            position: fixed;
            top: -10px;
            background: white;
            border-radius: 50%; 
            user-select: none;
            pointer-events: none;
            z-index: 1;
        }

        @keyframes drift {
            0% {
                transform: translate(0, 0);
            }
            25% {

                transform: translate(30px, 25vh);
            }
            50% {

                transform: translate(-20px, 50vh);
            }
            75% {

                transform: translate(50px, 75vh);
            }
            100% {
      
                transform: translate(20px, 110vh);
            }
        }
    </style>
</head>
<body>

    <h1>Efekt</h1>

    <script>
        function createParticle() {
            const particle = document.createElement('div');
            particle.classList.add('particle');
            

            const size = Math.random() * 2 + 2 + 'px'; 


            const position = Math.random() * 110 - 5 + 'vw'; 


            const duration = Math.random() * 5 + 5 + 's';
            
            const opacity = Math.random() * 0.5 + 0.3;

     
            particle.style.left = position;
            particle.style.width = size;
            particle.style.height = size;
            particle.style.opacity = opacity;
            
            particle.style.animationName = 'drift';
            particle.style.animationDuration = duration;

            particle.style.animationTimingFunction = 'ease-in-out'; 

            document.body.appendChild(particle);

   
            setTimeout(() => {
                particle.remove();
            }, parseFloat(duration) * 1000);
        }


        setInterval(createParticle, 150);
    </script>

</body>
</html>
Konu sahibinin izni ile bende kendim için yapmıştım isteyen kullanabilir.