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>🚀 火箭发射模拟</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #000; font-family: 'Microsoft YaHei', sans-serif; }
#ui {
position: fixed;
top: 20px;
left: 20px;
z-index: 100;
}
.info-box {
background: rgba(0,0,0,0.85);
border: 1px solid #00aaff;
border-radius: 10px;
padding: 15px 20px;
color: #fff;
margin-bottom: 10px;
}
#missionName { font-size: 22px; color: #00aaff; font-weight: bold; }
#phase { font-size: 16px; color: #ffaa00; margin-top: 5px; }
#telemetry {
font-family: 'Courier New', monospace;
font-size: 14px;
line-height: 1.8;
}
#telemetry span { color: #00ff88; }
#countdown {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 150px;
color: #ff4444;
text-shadow: 0 0 50px rgba(255,68,68,0.8);
font-weight: bold;
z-index: 200;
display: none;
}
#controls {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
z-index: 100;
}
.btn {
padding: 12px 30px;
font-size: 16px;
background: rgba(0,170,255,0.2);
color: #00aaff;
border: 2px solid #00aaff;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s;
}
.btn:hover { background: rgba(0,170,255,0.4); transform: scale(1.05); }
#stageList {
position: fixed;
right: 20px;
top: 50%;
transform: translateY(-50%);
z-index: 100;
}
.stage-item {
padding: 10px 20px;
background: rgba(0,0,0,0.8);
border: 1px solid #444;
border-radius: 8px;
color: #666;
font-size: 14px;
margin-bottom: 8px;
transition: all 0.3s;
}
.stage-item.active { border-color: #00ff88; color: #00ff88; box-shadow: 0 0 15px rgba(0,255,136,0.4); }
.stage-item.done { border-color: #0088ff; color: #0088ff; }
#notification {
position: fixed;
top: 120px;
left: 50%;
transform: translateX(-50%);
padding: 15px 40px;
background: rgba(0,0,0,0.9);
border: 2px solid #ffaa00;
border-r.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0