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: #0a1628;
font-family: 'STKaiti', 'KaiTi', serif;
}
#canvas-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* 标题 */
#title {
position: fixed;
top: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 100;
text-align: center;
pointer-events: none;
}
#title h1 {
font-size: 48px;
color: #fff;
text-shadow: 0 0 20px rgba(255, 100, 100, 0.5),
0 0 40px rgba(255, 200, 200, 0.3);
letter-spacing: 15px;
font-weight: normal;
}
#title p {
font-size: 18px;
color: rgba(255, 255, 255, 0.7);
margin-top: 10px;
letter-spacing: 5px;
}
/* 诗词 */
#poem {
position: fixed;
right: 40px;
top: 50%;
transform: translateY(-50%);
z-index: 100;
writing-mode: vertical-rl;
text-orientation: upright;
pointer-events: none;
}
#poem p {
font-size: 20px;
color: rgba(255, 255, 255, 0.8);
letter-spacing: 8px;
line-height: 2;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
margin-left: 20px;
}
/* 信息面板 */
#info-panel {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 100;
display: flex;
gap: 30px;
}
.info-item {
padding: 15px 30px;
background: rgba(139, 35, 50, 0.6);
border: 1px solid rgba(255, 200, 200, 0.3);
border-radius: 10px;
color: #fff;
backdrop-filter: blur(10px);
text-align: center;
}
.info-item .icon {
font-size: 28px;
margin-bottom: 5px;
}
.info-item .label {
font-size: 14px;
opacity: 0.8;
}
/* 控制按钮 */
#controls {
position: fixed;
left: 30px;
bottom: 30px;
z-index: 100;
display: flex;
flex-direction: column;
gap: 10px;
}
.control-btn {
padding: 12px 20px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 25px;
color: #fff;
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.control-btn:hover {
background: rgba(255, 100, 100, 0.3);
border-color: rgba(255, 150, 150, 0.5);
transform: translateX(5px);
}
/* 加载画面 */
#loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #1a0a0a, #0a1628);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1000;
transition: opacity 1s ease;
}
#loading.hidden {
opacity: 0;
pointer-events: none;
}
.loading-icon {
font-size: 60px;
animation: float 2s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
#loading p {
color: #fff;
font-size: 20px;
margin-top: 20px;
letter-spacing: 5px;
}
/* 雪花装饰 CSS */
.snowflake-css {
position: fixed;
color: #fff;
font-size: 20px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0