StealThis .dev

Three.js Particle Tunnel

Depth-heavy cinematic scene with post-processing glow.

Open in Lab
threejswebgl
Targets: JS HTML

Code

:root {
  --bg: #03060c;
  --text: #f0f5ff;
  --muted: #c6d5ea;
  --accent: #81e4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.topbar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

main {
  position: relative;
  min-height: 100vh;
}

#scene {
  position: fixed;
  inset: 0;
}

.overlay {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  width: min(900px, 92%);
  margin: 0 auto;
  display: grid;
  align-content: center;
  text-align: center;
  gap: 0.7rem;
}

.label {
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 7.5vw, 4.3rem);
}

p {
  color: var(--muted);
}

Three.js Particle Tunnel

Depth-heavy cinematic scene with post-processing glow.

Source

  • Repository: libs-gen
  • Original demo id: 09-threejs-particle-tunnel

Notes

Depth-heavy cinematic scene with post-processing glow.