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 {
overflow: hidden;
background: #0a0a0a;
font-family: 'STSong', 'SimSun', '宋体', serif;
color: #d4a574;
}
#canvas-container {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
}
.title-overlay {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
text-align: center;
pointer-events: none;
}
.title-overlay h1 {
font-size: 36px;
color: #d4a574;
text-shadow: 0 0 20px rgba(212, 165, 116, 0.5), 0 0 40px rgba(212, 165, 116, 0.3);
letter-spacing: 12px;
font-weight: normal;
}
.title-overlay p {
font-size: 14px;
color: rgba(212, 165, 116, 0.6);
margin-top: 8px;
letter-spacing: 4px;
}
.poem-panel {
position: fixed;
right: -450px;
top: 50%;
transform: translateY(-50%);
width: 420px;
max-height: 80vh;
background: linear-gradient(135deg, rgba(20, 10, 5, 0.95), rgba(40, 20, 10, 0.95));
border: 1px solid rgba(212, 165, 116, 0.3);
border-radius: 8px;
padding: 30px;
z-index: 100;
transition: right 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
overflow-y: auto;
box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(212, 165, 116, 0.05);
}
.poem-panel.active {
right: 20px;
}
.poem-panel::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, transparent, #d4a574, transparent);
}
.poem-panel::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, transparent, #d4a574, transparent);
}
.poem-panel .close-btn {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
color: rgba(212, 165, 116, 0.6);
cursor: pointer;
transition: color 0.3s;
background: none;
border: none;
}
.poem-panel .close-btn:hover {
color: #d4a574;
}
.poet-name {
font-size: 28px;
text-align: center;
margin-bottom: 5px;
color: #e8c496;
letter-spacing: 8px;
text-shadow: 0 0 15px rgba(212, 165, 116, 0.4);
}
.poet-courtesy {
text-align: center;
font-size: 14px;
color: rgba(212, 165, 116, 0.5);
margin-bottom: 8px;
letter-spacing: 3px;
}
.poet-desc {
text-align: center;
font-size: 13px;
color: rgba(212, 165, 116, 0.6);
margin-bottom: 20px;
line-height: 1.8;
padding: 0 10px;
}
.poem-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.4), transparent);
margin: 15px 0;
}
.poem-item {
margin-bottom: 20px;
padding: 15px;
background: rgba(212, 165, 116, 0.03);
border-radius: 6px;
border-left: 2px solid rgba(212, 165, 116, 0.2);
transition: all 0.3s;
}
.poem-item:hover {
background: rgba(212, 165, 116, 0.08);
border-left-color: rgba(212, 165, 116, 0.5);
}
.poem-title {
font-size: 18px;
color: #e8c496;
margin-bottom: 10px;
letter-spacing: 3px;
}
.poem-content {
font-size: 15px;
line-height: 2;
color: rgba(212, 165, 116, 0.8);
letter-spacing: 2px;
}
.relations-section {
margin-top: 15px;
}
.relations-title {
font-size: 15px;
color: rgba(212, 165, 116, 0.7);
margin-bottom: 8px;
letter-spacing: 3px;
}
.relation-tag {
display: inline-block;
padding: 3px 12px;
margin: 3px 5px;
font-size: 12px;
color: rgba(212, 165, 116, 0.7);
border: 1px solid rgba(212, 165, 116, 0.2);
border-radius: 15px;
cursor: pointer;
transition: all 0.3s;
}
.relation-tag:hover {
border-color: rgba(212, 165, 116, 0.6);
background: rgba(212, 165, 116, 0.1);
color: #e8c496;
}
.tooltip {
position: fixed;
padding: 8px 16px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0