three实现三维震撼龙卷风暴雨闪电模拟动画效果代码

代码语言:html

所属分类:三维

代码描述:three实现三维震撼龙卷风暴雨闪电模拟动画效果代码

代码标签: three 三维 震撼 龙卷风 暴雨 闪电 模拟 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>🌪️ 震撼龙卷风 3D</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            overflow: hidden; 
            background: #000;
            font-family: 'Arial', sans-serif;
        }
        canvas { display: block; }
        
        #info {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            text-align: center;
            pointer-events: none;
            z-index: 100;
        }
        
        #info h1 {
            font-size: 42px;
            text-shadow: 0 0 20px rgba(100, 200, 255, 0.8),
                         0 0 40px rgba(100, 200, 255, 0.5);
            margin-bottom: 10px;
            letter-spacing: 8px;
        }
        
        #info p {
            font-size: 16px;
            color: #aaa;
            text-shadow: 0 0 10px rgba(0,0,0,0.8);
        }
        
        #controls {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 100;
        }
        
        .btn {
            padding: 12px 30px;
            font-size: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            background: rgba(0,0,0,0.5);
            color: white;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s;
            backdrop-filter: blur(10px);
        }
        
        .btn:hover {
            background: rgba(100, 200, 255, 0.3);
            border-color: rgba(100, 200, 255, 0.8);
            box-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
        }
        
        .btn.active {
            background: rgba(100, 200, 255, 0.4);
            border-color: #64c8ff;
        }
        
        #stats {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 14px;
            background: rgba(0,0,0,0.5);
            padding: 15px 20px;
            border-radius: 10px;
            backdrop-filter: blur(5px);
        }
        
        #stats div {
            margin: 5px 0;
        }
        
        #stats span {
            color: #64c8ff;
            font-weight: bold;
        }
        
        #intensity {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            z-index: 100;
        }
        
        #intensity label {
            color: white;
            font-size: 12px;
            writing-mode: vertical-rl;
            text-orientation: mixed;
        }
        
        #intensitySlider {
            -webkit-appearance: none;
            width: 150px;
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(90deg, #2a5a3a, #ff6600, #ff0000);
            transform: rotate(-90deg);
            cursor: pointer;
        }
        
        #intensitySlider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 0 10px rgba(255,255,255,0.8);
            cursor: pointer;
        }
        
        .category-label {
            position: absolute;
            left: 60px;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 48px;
            font-weight: bold;
            text-shadow: 0 0 20px currentColor;
            pointer-events: none;
            transition: all 0.3s;
        }
        
       .........完整代码请登录后点击上方下载按钮下载查看

网友评论0