three实现三维场景圆柱世界人口排名动画效果代码
代码语言:html
所属分类:三维
代码描述:three实现三维场景圆柱世界人口排名动画效果代码
代码标签: three 三维 场景 圆柱 世界 人口 排名 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>Top 10 Population - Preview Mode</title>
<style>
body { margin: 0; overflow: hidden; background-color: #87CEEB; font-family: 'Arial', sans-serif; }
#canvas-container { width: 100vw; height: 100vh; }
/* 主界面控制按钮 */
#ui-controls {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 20px;
z-index: 100;
background: rgba(255, 255, 255, 0.25);
padding: 10px 25px;
border-radius: 50px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.4);
}
button {
background: #fff;
border: none;
color: #333;
padding: 12px 30px;
font-size: 16px;
font-weight: 800;
cursor: pointer;
border-radius: 25px;
transition: all 0.2s;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
button:hover {
transform: scale(1.05);
color: #007bff;
}
button:disabled {
background: #e0e0e0;
color: #999;
cursor: not-allowed;
transform: none;
}
/* 状态提示 */
#status {
position: absolute;
top: 30px;
left: 50%;
transform: translateX(-50%);
color: white;
background: rgba(255, 50, 50, 0.8); /* 红色背景表示录制中 */
padding: 10px 20px;
border-radius: 8px;
font-size: 16px;
font-weight: bold;
display: none;
pointer-events: none;
z-index: 200;
box-shadow: 0 0 15px rgba(255,0,0,0.5);
}
/* === 新增:视频预览弹窗层 === */
#video-modal {
display: none; /* 默认隐藏 */
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.8); /* 深色半透明背景 */
z-index: 1000;
align-items: center;
justify-content: center;
flex-direction: column;
}
.modal-content {
background: #fff;
padding: 20px;
border-radius: 12px;
text-align: center;
box-shad.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0