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>High-Speed Rail with Weather System</title>
<style>
body { margin: 0; overflow: hidden; background-color: #87CEEB; font-family: 'Segoe UI', sans-serif; transition: background-color 1s; }
#ui-container {
position: absolute; top: 20px; left: 20px; z-index: 100;
background: rgba(20, 30, 40, 0.85); padding: 20px; border-radius: 12px;
color: white; border-left: 5px solid #00d2ff; width: 280px;
box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
}
h1 { margin: 0 0 5px 0; font-size: 20px; color: #fff; font-weight: 900; letter-spacing: 1px; }
.sub-text { font-size: 12px; color: #aaa; margin-bottom: 15px; display: block; }
.control-group { margin-bottom: 15px; }
label { display: block; font-size: 12px; color: #00d2ff; margin-bottom: 8px; font-weight: 700; text-transform: uppercase; }
.btn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.btn-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
button {
background: #2c3e50; border: 1px solid #34495e; color: #bdc3c7;
padding: 8px; cursor: pointer; border-radius: 4px; font-size: 12px; transition: all 0.3s; font-weight: 600;
}
button:hover { background: #34495e; color: white; }
button.active { background: #00d2ff; color: #002233; border-color: #00aacc; font-weight: bold; }
/* 天气按钮特定样式 */
#btn-sunny.active { background: #ffaa00; border-color: #ffcc00; color: #331100; }
#btn-rain.active { background: #557799; border-color: #6688aa; color: #fff; }
#btn-snow.active { background: #ddeeff; border-color: #ffffff; color: #334455; }
#speed-display { font-family: 'Impact', sans-serif; font-size: 32px; color: #00d2ff; text-align: right; margin-top: 10px; border-top: 1px solid #444; padding-top: 10px; }
.unit { font-size: 14px; color: #888; font-weight: normal; font-family: sans-serif; }
#loading {
position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #111;
display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 999; transition: opacity 0.8s;
}
.loader-bar { width: 200px; height: 4px; background: #333; border-radius: 2px; overflow: hidden; margin-top: 15px; }
.loader-fill { width: 50%; height: 100%; background: #00d2ff; animation: load 1s infinite ease-in-out alternate; }
@keyframes load { from { transform: translateX(-50%); } to { transform: translateX(150%); } }
</style>
</head>
<body>
<div id="loading">
<div style="color: white; font-weight: bold; font-size: 16px; letter-spacing: 2px;">INITIALIZING WORLD</div>
<div class="loader-bar"><div clas.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0