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>2025 新年快乐 - 时光长廊</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            overflow: hidden; 
            background: #000; 
            font-family: 'Microsoft YaHei', 'Arial', sans-serif;
            user-select: none;
        }
        canvas { display: block; }
        
        /* 加载层样式优化 */
        #loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: opacity 0.8s ease-out;
        }
        
        .loader-ring {
            width: 80px;
            height: 80px;
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-left-color: #ffd700;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
        }
        
        @keyframes spin { 100% { transform: rotate(360deg); } }
        
        #loading p {
            color: #ffd700;
            margin-top: 20px;
            font-size: 16px;
            letter-spacing: 2px;
        }
        
        #progress {
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            margin-top: 8px;
        }
        
        /* 文字层样式 */
        #phase-text {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 4vw;
            font-weight: bold;
            text-align: center;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 0, 100, 0.5);
            opacity: 0;
            pointer-even.........完整代码请登录后点击上方下载按钮下载查看

网友评论0