File size: 7,477 Bytes
025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c ab7cfa8 025a46c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
<!DOCTYPE html>
<html>
<head>
<style>
/* Base styles same as before */
.scene-container {
width: 100%;
height: 800px;
background: linear-gradient(#1B4B8A, #3A6FB0 40%, #87CEEB 70%);
position: relative;
overflow: hidden;
}
:root {
--water-blue-1: rgba(173, 216, 230, 0.7);
--water-blue-2: rgba(135, 206, 235, 0.6);
--water-white-1: rgba(255, 255, 255, 0.5);
--water-white-2: rgba(240, 248, 255, 0.4);
}
.waterfall-container {
position: absolute;
left: 400px;
top: 200px;
width: 80px;
height: 300px;
overflow: visible;
}
.river-container {
position: absolute;
bottom: 100px;
left: 0;
width: 100%;
height: 120px;
transform: perspective(1000px) rotateX(30deg);
transform-origin: bottom;
overflow: hidden;
}
.impact-zone {
position: absolute;
left: 380px;
bottom: 220px;
width: 160px;
height: 80px;
overflow: visible;
}
.water-shape {
position: absolute;
border-radius: 50%;
opacity: 0;
}
/* Extended animation durations */
.waterfall-drop {
animation: waterfall-fall var(--fall-duration, 3s) linear infinite;
}
.impact-splash {
animation: splash var(--splash-duration, 2s) ease-out infinite;
}
.river-swirl {
animation: river-flow var(--flow-duration, 8s) linear infinite;
}
/* Adjusted keyframes for smoother transitions */
@keyframes waterfall-fall {
0% {
transform: translate(var(--start-x, 0), -50%) scale(1);
opacity: 0;
}
5% { opacity: var(--opacity, 0.6); }
95% { opacity: var(--opacity, 0.6); }
100% {
transform: translate(var(--end-x, 0), 150%) scale(var(--end-scale, 0.8));
opacity: 0;
}
}
@keyframes splash {
0% {
transform: translate(var(--start-x, 0), 0) scale(0.2);
opacity: 0;
}
20% { opacity: var(--opacity, 0.6); }
80% { opacity: var(--opacity, 0.6); }
100% {
transform: translate(var(--final-x, 0), var(--final-y, 0)) scale(1.5);
opacity: 0;
}
}
@keyframes river-flow {
0% {
transform: translate(-100%, var(--y-pos, 0)) rotate(0deg);
opacity: 0;
}
5% { opacity: var(--opacity, 0.6); }
95% { opacity: var(--opacity, 0.6); }
100% {
transform: translate(200%, var(--y-pos, 0)) rotate(360deg);
opacity: 0;
}
}
/* Rest of the styles remain the same */
.climber {
position: absolute;
width: 40px;
height: 60px;
animation: bounce 1.2s infinite ease-in-out;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
.climber1 { left: 300px; top: 200px; animation-delay: -0.2s; }
.climber2 { left: 500px; top: 180px; animation-delay: -0.5s; }
.climber3 { left: 700px; top: 220px; animation-delay: -0.8s; }
</style>
</head>
<body>
<div class="scene-container">
<!-- Background and climbers remain the same -->
<svg width="100%" height="100%" viewBox="0 0 1200 800">
<path d="M0,300 L200,100 L300,250 L400,80 L500,220 L600,100 L700,240 L800,120 L1000,280 L1200,150 L1200,800 L0,800 Z"
fill="#8B4513"/>
</svg>
<!-- Same climbers as before -->
<svg class="climber climber1" viewBox="0 0 40 60">
<path d="M20,10 L20,35 M15,20 L25,20 M20,35 L15,50 M20,35 L25,50"
stroke="#333" stroke-width="3" stroke-linecap="round"/>
<circle cx="20" cy="8" r="6" fill="#ff4444"/>
</svg>
<svg class="climber climber2" viewBox="0 0 40 60">
<path d="M20,10 L20,35 M15,20 L25,20 M20,35 L15,50 M20,35 L25,50"
stroke="#333" stroke-width="3" stroke-linecap="round"/>
<circle cx="20" cy="8" r="6" fill="#4444ff"/>
</svg>
<svg class="climber climber3" viewBox="0 0 40 60">
<path d="M20,10 L20,35 M15,20 L25,20 M20,35 L15,50 M20,35 L25,50"
stroke="#333" stroke-width="3" stroke-linecap="round"/>
<circle cx="20" cy="8" r="6" fill="#44ff44"/>
</svg>
<div class="waterfall-container"></div>
<div class="impact-zone"></div>
<div class="river-container"></div>
<script>
function createWaterSystem() {
const waterfall = document.querySelector('.waterfall-container');
const impactZone = document.querySelector('.impact-zone');
const river = document.querySelector('.river-container');
function createWaterfallDrop() {
const drop = document.createElement('div');
drop.className = 'water-shape waterfall-drop';
const size = 10 + Math.random() * 30;
drop.style.cssText = `
width: ${size}px;
height: ${size}px;
background: var(--water-${Math.random() > 0.5 ? 'blue' : 'white'}-${Math.random() > 0.5 ? '1' : '2'});
left: ${Math.random() * 100}%;
--fall-duration: ${2.5 + Math.random()}s;
--opacity: ${0.4 + Math.random() * 0.3};
--start-x: ${-10 + Math.random() * 20}px;
--end-x: ${-20 + Math.random() * 40}px;
--end-scale: ${0.6 + Math.random() * 0.4};
filter: blur(${1 + Math.random() * 2}px);
`;
waterfall.appendChild(drop);
setTimeout(() => drop.remove(), 4000); // Extended lifetime
}
function createSplash() {
const splash = document.createElement('div');
splash.className = 'water-shape impact-splash';
const size = 15 + Math.random() * 40;
splash.style.cssText = `
width: ${size}px;
height: ${size}px;
background: var(--water-${Math.random() > 0.5 ? 'blue' : 'white'}-${Math.random() > 0.5 ? '1' : '2'});
left: ${Math.random() * 100}%;
--splash-duration: ${1.8 + Math.random() * 0.4}s;
--opacity: ${0.3 + Math.random() * 0.4};
--y-offset: ${-10 - Math.random() * 20}px;
--final-y: ${-20 - Math.random() * 30}px;
--final-x: ${-30 + Math.random() * 60}px;
filter: blur(${2 + Math.random() * 2}px);
`;
impactZone.appendChild(splash);
setTimeout(() => splash.remove(), 3000); // Extended lifetime
}
function createRiverSwirl() {
const swirl = document.createElement('div');
swirl.className = 'water-shape river-swirl';
const size = 20 + Math.random() * 50;
swirl.style.cssText = `
width: ${size}px;
height: ${size}px;
background: var(--water-${Math.random() > 0.5 ? 'blue' : 'white'}-${Math.random() > 0.5 ? '1' : '2'});
top: ${Math.random() * 100}%;
--flow-duration: ${7 + Math.random() * 3}s;
--opacity: ${0.3 + Math.random() * 0.4};
--y-pos: ${-20 + Math.random() * 40}px;
filter: blur(${1 + Math.random() * 3}px);
`;
river.appendChild(swirl);
setTimeout(() => swirl.remove(), 10000); // Extended lifetime
}
// Slightly increased generation frequency
setInterval(createWaterfallDrop, 100);
setInterval(createSplash, 150);
setInterval(createRiverSwirl, 200);
}
createWaterSystem();
</script>
</div>
</body>
</html> |