three实现三维音乐喷泉动画代码
代码语言:html
所属分类:其他
代码由qwen-3.7-plus ai生成,可能有错误,仅供参考:点击查看提示词
代码描述:三维音乐喷泉
下面为部分代码预览,完整代码请点击下载或在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>赛博朋克音乐喷泉 | Cyberpunk Music Fountain</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #000; font-family: 'Courier New', monospace; }
canvas { display: block; }
#overlay {
position: fixed; top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.88);
display: flex; flex-direction: column;
align-items: center; justify-content: center;
z-index: 1000; transition: opacity 0.6s;
}
#overlay.hidden { opacity: 0; pointer-events: none; }
.title {
color: #f0f; font-size: 42px; margin-bottom: 10px;
text-shadow: 0 0 20px #f0f, 0 0 60px #f0f;
letter-spacing: 10px;
animation: titlePulse 2s ease-in-out infinite;
}
.subtitle {
color: #0ff; font-size: 14px; margin-bottom: 50px;
letter-spacing: 6px; opacity: 0.7;
}
@keyframes titlePulse {
0%, 100% { text-shadow: 0 0 20px #f0f, 0 0 60px #f0f; }
50% { text-shadow: 0 0 30px #f0f, 0 0 80px #f0f, 0 0 120px #80f; }
}
#startBtn {
background: transparent;
border: 2px solid #0ff;
color: #0ff;
padding: 18px 55px; font-size: 22px;
cursor: pointer; font-family: 'Courier New', monospace;
text-transform: uppercase; letter-spacing: 6px;
transition: all 0.3s; position: relative;
}
#startBtn:hover {
background: #0ff; color: #000;
box-shadow: 0 0 40px #0ff, 0 0 80px #0ff;
}
#hud {
position: fixed; top: 20px; left: 20px;
color: #0ff; font-size: 11px; z-index: 100;
text-shadow: 0 0 5px #0ff; line-height: 2;
background: rgba(0,0,0,0.5); padding: 12px 18px;
border: 1px solid rgba(0,255,255,0.2);
}
#hud span { color: #fff; }
#audioViz {
position: fixed; bottom: 20px; left: 50%;
transform: translateX(-50%);
display: flex; gap: 3px; align-items: flex-end;
z-index: 100; height: 60px;
}
.viz-bar {
width: 5px; background: #0ff;
transition: height 0.04s, background 0.1s;
box-shadow: 0 0 6px #0ff; border-radius: 1px;
}
.scanlines {
position: fixed; top: 0; left: 0;
width: 100%; height: 100%;
pointer-events: none; z-index: 999;
background: repeating-linear-gradient(
0deg, transparent, transparent 2px,
rgba(0,255,255,0.025) 2px, rgba(0,255,255,0.025) 4px
);
}
.vignette {
position: fixed; top: 0; left: 0;
width: 100%; height: 100%;
pointer-events: none; z-index: 998;
background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}
</style>
</head>
<body>
<div class="scanlines"></div>
<div class="vignette"></div>
<div id="overlay">
<div class="title">CYBER FOUNTAIN</div>
<div class="subtitle">AUDIO REACTIVE NEURAL WATER SYSTEM</div>
<button id="startBtn"&g.........完整代码请登录后点击上方下载按钮下载查看















网友评论0