Three实现可交互水力发电三维原理演示动画代码
代码语言:html
所属分类:三维
代码描述:Three实现可交互水力发电三维原理演示动画代码
代码标签: Three 交互 水力 发电 三维 原理 演示 动画 代码
下面为部分代码预览,完整代码请点击下载或在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>三维水力发电站原理演示</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #000;
overflow: hidden;
color: white;
}
#container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.title {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 1.8rem;
font-weight: bold;
text-align: center;
z-index: 100;
text-shadow: 0 0 20px rgba(0, 150, 255, 0.8);
background: linear-gradient(90deg, #00d4ff, #0099ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.control-panel {
position: fixed;
top: 80px;
left: 20px;
background: rgba(0, 20, 40, 0.9);
border-radius: 15px;
padding: 20px;
z-index: 100;
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 150, 255, 0.3);
width: 280px;
}
.control-panel h3 {
color: #00d4ff;
margin-bottom: 15px;
font-size: 1rem;
display: flex;
align-items: center;
gap: 8px;
}
.control-group {
margin-bottom: 15px;
}
.control-group label {
display: block;
margin-bottom: 8px;
font-size: 0.85rem;
color: #aaa;
}
.slider-container {
display: flex;
align-items: center;
gap: 10px;
}
input[type="range"] {
flex: 1;
height: 6px;
-webkit-appearance: none;
background: rgba(255,255,255,0.1);
border-radius: 3px;
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px;
height: 16px;
background: linear-gradient(135deg, #00d4ff, #0099ff);
border-radius: 50%;
cursor: pointer;
}
.value-display {
min-width: 50px;
text-align: right;
color: #00d4ff;
font-weight: bold;
}
.btn {
width: 100%;
padding: 10px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
margin-bottom: 8px;
transition: all 0.3s;
}
.btn-primary {
background: linear-gradient(135deg, #00d4ff, #0099ff);
color: white;
}
.btn-secondary {
background: rgba(255,255,255,0.1);
color: white;
border: 1px solid rgba(255,255,255,0.2);
}
.btn:hover {
transform: scale(1.02);
box-shadow: 0 5px 20px rgba(0, 150, 255, 0.3);
}
.info-panel {
position: fixed;
top: 80px;
right: 20px;
background: rgba(0, 20, 40, 0.9);
border-radius: 15px;
padding: 20px;
z-index: 100;
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 150, 255, 0.3);
width: 300px;
}
.info-panel h3 {
color: #00d4ff;
margin-bottom: 15px;
font-size: 1rem;
}
.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.stat-item {
background: rgba(0, 100, 200, 0.2);
padding: 12px;
border-radius: 10px;
text-align: center;
}
.stat-value {
font-size: 1.4rem;
font-weight: bold;
color: #00d4ff;
}
.stat-label {
font-size: 0.75rem;
color: #888;
margin-top: 5px;
}
.process-panel {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 20, 40, 0.9);
border-radius: 15px;
padding: 15px 25px;
z-index: 100;
backdrop-filter: blur(10px);
border: 1px solid rgba(0, 150, 255, 0.3);
display: flex;
gap: 20px;
align-items: center;
}
.process-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
opacity: 0.5;
transition: all 0.3s;
cursor: pointer;
}
.process-step.active {
opacity: 1;
}
.process-step:hover {
opacity: 0.8;
}
.step-icon {
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(0, 150, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
border: 2px solid transparent;
transition: all 0.3s;
}
.process-step.active .step-icon {
background: linear-gradient(135deg, #00d4ff, #0099ff);
border-color: #00d4ff;
box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
}
.step-label {
font-size: 0.75rem;
text-align: center;
max-width: 70px;
}
.step-arrow {
color: #00d4ff;
font-size: 1.2rem;
}
.tooltip {
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0