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>Nebula Particle Christmas Tree</title>
<style>
body { margin: 0; overflow: hidden; background-color: #020202; font-family: 'Helvetica Neue', sans-serif; }
#ui-layer {
position: absolute;
top: 20px;
left: 20px;
z-index: 100;
}
.glass-btn {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 215, 0, 0.3);
color: #FFD700;
padding: 12px 25px;
font-size: 14px;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 2px;
border-radius: 4px;
transition: all 0.4s ease;
box-shadow: 0 0 15px rgba(0,0,0,0.5);
display: flex;
align-items: center;
gap: 10px;
}
.glass-btn:hover {
background: rgba(255, 215, 0, 0.1);
border-color: #FFD700;
box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
text-shadow: 0 0 8px #FFD700;
}
input[type="file"] { display: none; }
#loader {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #FFD700;
z-index: 200;
transition: opacity 1s ease;
}
.spinner {
width: 40px; height: 40px;
border: 3px solid rgba(255,215,0,0.3);
border-radius: 50%;
border-top-color: #FFD700;
animation: spin 1s ease-in-out infinite;
margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
</style>
</head>
<body>
<div .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0