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>🎆 2026新年快乐 - 3D祝福卡片</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            overflow: hidden; 
            background: #000;
            font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
        }
        canvas { display: block; }
        
        #loading {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1a0a2e, #16213e, #0f3460);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        #loading h1 {
            font-size: 48px;
            background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 300% 300%;
            animation: gradientText 3s ease infinite;
            margin-bottom: 30px;
        }
        
        @keyframes gradientText {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        .loader {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255,255,255,0.1);
            border-top-color: #ff6b6b;
            border-right-color: #feca57;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        #info {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255,255,255,0.8);
            font-size: 14px;
            text-align: center;
            background: rgba(0,0,0,0.5);
            padding: 10px 25px;
            border-radius: 25px;
            backdrop-filter: blur(10px);
        }
        
        #controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .ctrl-btn {
            padding: 12px 20px;
            background: rgba(255,255,255,0.1);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 25px;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .ctrl-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.05);
        }
        
        #cardInfo {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 30px 50px;
            border-radius: 20px;
            font-size: 32px;
            text-align: center;
            display: none;
            border: 2px solid rgba(255,255,255,0.3);
            box-shadow: 0 0 50px rgba(255,100,100,0.5);
            z-index: 100;
        }
        
        #yearDisplay {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 28px;
            font-weight: bold;
            background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 30px rgba(255,107,107,0.5);
        }
    </style>
</head>
<body>
    <div id="loading">
        <h1>🎆 2026 新年快乐 🎆</h1>
        <div class="loader"></div>
        <p style="color: rgba(255,255,255,0.6); margin-top: 20px;">正在.........完整代码请登录后点击上方下载按钮下载查看

网友评论0