<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kar Yağışı</title>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
font-family: Arial, sans-serif;
}
.snowflake {
position: fixed;
top: -10px;
color: white;
font-size: 1em;
user-select: none;
pointer-events: none;
animation: fall linear infinite;
opacity: 0.8;
z-index: 9999;
}
@keyframes fall {
to {
transform: translateY(100vh) rotate(360deg);
}
}
</style>
</head>
<body>
<script>
function createSnowflake() {
const snowflake = document.createElement('div');
snowflake.classList.add('snowflake');
snowflake.innerHTML = '❄';
const startX = Math.random() * window.innerWidth;
const size = Math.random() * 1.5 + 0.5;
const duration = Math.random() * 10 + 15;
const delay = Math.random() * 5;
snowflake.style.left = startX + 'px';
snowflake.style.fontSize = size + 'em';
snowflake.style.animationDuration = duration + 's';
snowflake.style.animationDelay = delay + 's';
snowflake.style.opacity = Math.random() * 0.6 + 0.4;
document.body.appendChild(snowflake);
setTimeout(() => {
snowflake.remove();
}, (duration + delay) * 1000);
}
// Düzenli aralıklarla kar tanesi oluştur
setInterval(createSnowflake, 150);
// Başlangıçta daha yoğun kar tanesi oluştur
for (let i = 0; i < 60; i++) {
setTimeout(createSnowflake, i * 50);
}
</script>
</body>
</html>Demo: https://deffdemo.xyz/paylasimlar/ Yılbaşı İçin Kar Yağma Efekti (Ücretsiz/Basit)
8
●498
- 23-12-2025, 03:33:38
- 23-12-2025, 03:44:27
<!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. - 23-12-2025, 04:01:27Hocam senin kod çalışmadı bendeloisy adlı üyeden alıntı: mesajı görüntüle
- 23-12-2025, 05:05:53Konu sahibinin izniyle ben de bırakayım, kullanmak isteyen yararlanabilir.

Demo: tıklayın
<style> body { background-color: #000; margin: 0; padding: 0; overflow-x: hidden; } .omurcn53-kar-sahnesi { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99999; overflow: hidden; } .omurcn53-kar-tanesi { position: absolute; top: -10px; background-color: #fff; border-radius: 50%; opacity: 0.8; box-shadow: 0 0 5px rgba(255, 255, 255, 0.8); } @keyframes omurcn53-yagis-animasyonu { 0% { transform: translateY(-10vh) translateX(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(110vh) translateX(20px); opacity: 0.3; } } @keyframes omurcn53-sallanma { 0%, 100% { margin-left: 0; } 50% { margin-left: 15px; } } </style><div id="omurcn53-kar-sahnesi" class="omurcn53-kar-sahnesi"></div>
<script> document.addEventListener('DOMContentLoaded', () => { const sahne = document.getElementById('omurcn53-kar-sahnesi'); const karTanesiSayisi = 50; for (let i = 0; i < karTanesiSayisi; i++) { createSnowflake(sahne); } function createSnowflake(container) { const flake = document.createElement('div'); flake.classList.add('omurcn53-kar-tanesi'); const size = Math.random() * 4 + 2; flake.style.width = `${size}px`; flake.style.height = `${size}px`; flake.style.left = `${Math.random() * 100}%`; const duration = Math.random() * 10 + 5; flake.style.animation = ` omurcn53-yagis-animasyonu ${duration}s linear infinite, omurcn53-sallanma ${Math.random() * 4 + 2}s ease-in-out infinite alternate `; flake.style.animationDelay = `-${Math.random() * 10}s`; flake.style.opacity = Math.random() * 0.5 + 0.3; if (Math.random() > 0.5) { flake.style.filter = `blur(${Math.random()}px)`; } container.appendChild(flake); } }); </script> - 23-12-2025, 06:48:50Paylaşmak güzeldir, her birinize ayrı ayrı teşekkürler dostlar
