three实现三维音乐喷泉动画代码
代码语言:html
所属分类:其他
代码由glm-5.2 ai生成,可能有错误,仅供参考:点击查看提示词
代码描述:三维音乐喷泉
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>霓虹喷泉 · Neon Fountain</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
overflow: hidden;
background: #050015;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
canvas { display: block; }
.title {
position: fixed;
top: 30px;
left: 30px;
z-index: 10;
color: white;
pointer-events: none;
}
.title h1 {
font-size: 36px;
font-weight: 100;
letter-spacing: 10px;
background: linear-gradient(90deg, #ff0088 0%, #00ffff 50%, #ffaa00 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 0 20px rgba(255, 0, 136, 0.3));
}
.title p {
font-size: 10px;
opacity: 0.5;
letter-spacing: 6px;
margin-top: 6px;
color: #fff;
font-weight: 300;
}
.panel {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
display: flex;
gap: 16px;
align-items: center;
background: rgba(15, 5, 30, 0.65);
padding: 14px 24px;
border-radius: 40px;
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 0, 136, 0.15);
}
.btn {
background: linear-gradient(135deg, #ff0088 0%, #aa00ff 50%, #00ffff 100%);
background-size: 200% 200%;
color: white;
border: none;
padding: 12px 32px;
border-radius: 24px;
font-size: 13px;
cursor: pointer;
font-weight: 600;
letter-spacing: 3px;
transition: all 0.3s;
animation: shimmer 4s ease infinite;
text-transform: uppercase;
}
@keyframes shimmer {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
.btn:hover {
transform: scale(1.05);
box-shadow: 0 0 30px rgba(255, 0, 136, 0.6);
}
.btn:active { transform: scale(0.98); }
.info {
color: rgba(255,255,255,0.5);
font-size: 11px;
letter-spacing: 2px;
font-weight: 300;
}
.beats {
display: flex;
gap: 6px;
}
.beat-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255,255,255,0.15);
transition: all 0.08s ease-out;
}
.beat-dot.active {
background: #ff0088;
box-shadow: 0 0 12px #ff0088, 0 0 24px #ff0088;
transform: scale(1.4);
}
.hint {
position: fixed;
top: 30px;
right: 30px;
z-index: 10;
color: rgba(255,255,255,0.35);
font-size: 10px;
letter-spacing: 3px;
text-align: right;
pointer-events: none;
line-height: 1.8;
font-weight: 300;
}
.vu-meter {
position: fixed;
left: 30px;
bottom: 30px;
z-index: 10;
display: flex;
flex-direction: column-reverse;
gap: 3px;
height: 200px;
pointer-events: none;
}
.vu-bar {
width: 4px;
height: 6px;
background: rgba(255,255,255,0.1);
border-radius: 2px;
transition: all 0.05s;
}
.loading {
position: fixed;
inset: 0;
background: #050015;
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 12px;
letter-spacing: 4px;
transition: opacity 0.8s;
}
.loading.hidden { opacity: 0; pointer-events: none; }
</style>
</head>
<body>
<div class="loading" id="loading">LOADING SCENE...</div>
<div class="title">
<h1>霓虹喷泉</h1>
<p>NEON FOUNTAIN · MUSIC VISUAL</p>
</div>
<div class="hint">
拖动旋转视角 · 滚轮缩放<br>
DRAG TO ROTATE · SCROLL TO ZOOM
</div>
<div class="vu-meter" id="vuMeter"></div>
<div class="panel">
<div class="beats">
<div class="beat-dot" id="beat0"></div>
<div class=.........完整代码请登录后点击上方下载按钮下载查看















网友评论0