three实现城市粒子烟花绽放显示祝福文字带音效动画效果代码
代码语言:html
所属分类:粒子
代码描述:three实现城市粒子烟花绽放显示祝福文字带音效动画效果代码
代码标签: three 城市粒子 烟花 绽放 显示 祝福 文字 音效 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2025 新年烟花盛典 - 3D City</title>
<style>
body { margin: 0; overflow: hidden; background-color: #050510; font-family: 'Microsoft YaHei', sans-serif; }
#canvas-container { width: 100vw; height: 100vh; display: block; }
/* UI 容器 */
#ui-container {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
background: rgba(10, 20, 40, 0.7);
padding: 12px 25px;
border-radius: 50px;
border: 1px solid rgba(0, 255, 255, 0.3);
backdrop-filter: blur(10px);
display: flex;
gap: 12px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
input {
background: rgba(0,0,0,0.3);
border: 1px solid rgba(255,255,255,0.2);
color: #fff;
padding: 8px 15px;
border-radius: 20px;
font-size: 16px;
width: 140px;
text-align: center;
outline: none;
transition: 0.3s;
}
input:focus { border-color: #00ffff; box-shadow: 0 0 10px rgba(0, 255, 255, 0.3); }
button {
border: none;
padding: 8px 20px;
border-radius: 20px;
cursor: pointer;
font-size: 15px;
font-weight: bold;
transition: 0.3s;
color: white;
display: flex;
align-items: center;
gap: 5px;
}
#FireBtn {
background: linear-gradient(90deg, #ff0055, #ff5500);
box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}
#FireBtn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 0, 85, 0.6); }
#RandomBtn {
background: linear-gradient(90deg, #0055ff, #00aaff);
box-shadow: 0 0 10px rgba(0, 85, 255, 0.4);
}
#RandomBtn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 85, 255, 0.6); }
/* 引导层 */
#overlay {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
bac.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0