three模拟三维音乐喷泉随音乐摆动灯光秀代码
代码语言:html
所属分类:三维
代码描述:three模拟三维音乐喷泉随音乐摆动灯光秀代码
代码标签: three 模拟 三维 音乐 喷泉 随 摆动 灯光 秀 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D 音乐喷泉模拟 - Three.js</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #050510;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#canvas-container {
width: 100vw;
height: 100vh;
}
#gui-container {
position: absolute;
top: 20px;
left: 20px;
color: white;
background: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.1);
pointer-events: auto;
max-width: 300px;
}
h1 {
font-size: 18px;
margin: 0 0 10px 0;
color: #00ffcc;
text-shadow: 0 0 10px rgba(0,255,204,0.5);
}
p {
font-size: 12px;
color: #ccc;
margin: 5px 0 15px 0;
line-height: 1.4;
}
button {
background: linear-gradient(135deg, #00ffcc, #0099ff);
border: none;
color: black;
padding: 10px 20px;
font-weight: bold;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s;
width: 100%;
margin-bottom: 8px;
}
button:hover {
transform: scale(1.03);
box-shadow: 0 0 15px rgba(0,255,204,0.6);
}
.btn-secondary {
backg.........完整代码请登录后点击上方下载按钮下载查看















网友评论0