three实现三维音乐喷泉代码
代码语言:html
所属分类:其他
代码由gemini-3.5-flash ai生成,可能有错误,仅供参考:点击查看提示词
代码描述: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 音乐喷泉动画场景</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #050510;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
user-select: none;
}
#canvas-container {
width: 100vw;
height: 100vh;
display: block;
}
/* 现代磨砂玻璃质感的UI控制面板 */
#ui-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(15, 15, 30, 0.85);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 40px;
color: #ffffff;
text-align: center;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
z-index: 10;
transition: opacity 0.5s ease, pointer-events 0.5s ease;
max-width: 400px;
width: 90%;
}
h1 {
margin-top: 0;
font-size: 24px;
font-weight: 600;
letter-spacing: 1px;
color: #00f3ff;
text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}
p {
font-size: 14px;
color: #a0a5c0;
line-height: 1.6;
margin-bottom: 30px;
}
.btn {
display: block;
width: 100%;
padding: 14px;
margin: 12px 0;
background: linear-gradient(135deg, #0055ff, #00f3ff);
border: none;
border-radius: 8px;
color: white;
font-size: 15px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 243, 255, 0.4);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: none;
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.2);
box-shadow: none;
}
#file-input {
display: none;
}
/* 顶部提示栏 */
#hud {
position: absolute;
top: 20px;
left: 20px;
color: rgba(255, 2.........完整代码请登录后点击上方下载按钮下载查看















网友评论0