three实现三维宇宙粒子星云可视化动画代码

代码语言:html

所属分类:粒子

代码描述:three实现三维宇宙粒子星云可视化动画代码

代码标签: three 三维 宇宙 粒子 星云 可视化 动画 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  
  
<style>
:root {
  --bg-void: #000001;
  --neon-cyan: #00f0ff;
  --neon-blue: #0066ff;
  --neon-violet: #8a2be2;
  --text-main: #e0f2fe;
  --text-dim: #7dd3fc;
  --panel-bg: rgba(4, 9, 16, 0.65);
  --panel-border: rgba(0, 240, 255, 0.15);
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-void);
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
}

#swarm-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 15%, var(--bg-void) 120%),
    radial-gradient(circle at 45% 42%, rgba(0, 15, 30, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 2;
}

#info-panel {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 4;
  width: 360px;
  color: var(--text-main);
  border-radius: 6px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.9),
    inset 0 0 32px rgba(0, 100, 255, 0.05);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

#info-panel.expanded {
  width: 440px;
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(0, 150, 255, 0.1),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.info-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
  opacity: 0.5;
}

.info-kicker {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 6px;
  font-weight: 600;
}

#info-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

#info-toggle {
  width:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0