three实现三维太极八卦盘代码
代码语言:html
所属分类:三维
代码描述:three实现三维太极八卦盘代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400&family=Roboto:wght@300;400&display=swap");
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
width: 100vw;
height: 100vh;
overflow: hidden;
background: #000108;
font-family: "Roboto", sans-serif;
}
canvas {
display: block;
}
.ui {
position: fixed;
bottom: 2rem;
left: 2rem;
z-index: 10;
pointer-events: none;
color: rgba(255, 255, 255, 0.55);
text-shadow: 0 0 10px rgba(0, 0, 0, 0.95);
}
.ui h1 {
font-size: 1.1rem;
font-weight: 300;
letter-spacing: 0.15em;
margin-bottom: 0.2rem;
display: flex;
align-items: baseline;
gap: 0.4em;
}
.ui h1 .zh {
font-family: "Noto Serif SC", serif;
font-size: 1.25rem;
font-weight: 400;
}
.ui .meaning {
font-size: 0.68rem;
color: rgba(255, 255, 255, 0.35);
letter-spacing: 0.1em;
font-style: italic;
margin-bottom: 0.55rem;
}
.ui .hint {
font-size: 0.68rem;
color: rgba(255, 255, 255, 0.22);
letter-spacing: 0.05em;
}
#fullscreenBtn {
position: fixed;
top: 12px;
right: 12px;
z-index: 10;
background: rgba(0, 0, 0, 0.35);
border: 1px solid rgba(255, 255, 255, 0.12);
color: rgba(255, 255, 255, 0.45);
width: 40px;
height: 40px;
border-radius: 8px;
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#fullscreenBtn:hover {
background: rgba(255, 255, 255, 0.12);
color: rgba(255, 220, 80, 0.9);
border-color: rgba(255, 220, 80, 0.4);
}
@media (max-width: 768px) {
.ui h1 {
font-size: 0.9rem;
}
.ui h1 .zh {
font-size: 1.05rem;
}
.ui .meaning {
font-size: 0.58rem;
}
.ui .hint {
font-size: 0.58rem;
}
}
</style>
</head>
<body translate="no">
<canvas id="c"></canvas>
<div class="ui">
<h1><span class="zh">太極</spa.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0