three实现三维炫酷旋转标签云文字效果代码

代码语言:html

所属分类:三维

代码描述:three实现三维炫酷旋转标签云文字效果代码

代码标签: three 三维 炫酷 旋转 标签 文字

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

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>炫酷三维文字标签云</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            margin: 0;
            overflow: hidden;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
            color: white;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .header {
            text-align: center;
            padding: 20px;
            z-index: 10;
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
            background: linear-gradient(90deg, #ff6b6b, #48dbfb, #1dd1a1);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: titleGlow 3s infinite alternate;
        }
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.8;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .container {
            position: relative;
            flex: 1;
            display: flex;
            overflow: hidden;
        }
        
        #scene-container {
            flex: 1;
        }
        
        .info-panel {
            position: absolute;
            bottom: 20px;
            left: 20px;
            background: rgba(10, 15, 30, 0.7);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(0, 200, 255, 0.3);
            max-width: 300px;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
        }
        
        .info-panel h3 {
            margin-bottom: 10px;
            color: #48dbfb;
        }
        
        .controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }
        
        button {
            background: rgba(0, 150, 255, 0.2);
            border: 1px solid rgba(0, 200, 255, 0.5);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        button:hover {
            background: rgba(0, 200, 255, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
        }
        
        .tooltip {
            position: absolute;
            background: rgba(10, 15, 30, 0.9);
            border: 1px solid rgba(0, 200, 255, 0.5);
            padding: 15px;
            border-radius: 8px;
            max-width: 300px;
            z-index: 100;
            backdrop-filter: blur(5px);
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
            transform: scale(0);
            transition: transform 0.3s ease;
        }
        
        .tooltip.active {
            transform: scale(1);
        }
        
        .tooltip h3 {
            color: #48dbfb;
            margin-bottom: 8px;
        }
        
        .foo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0