WebGL 3D Scene

Mood track «Shiny Tech II» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style WebGL 3D Scene
Preview built in HTML and CSS in this style

Scena 3D WebGL · Escena 3D WebGL · Three.js scene · 3D sul web · React Three Fiber

Real three-dimensional objects with lights, reflections and depth, rendered live inside the web page. They rotate with the mouse, react to scroll and turn a site into an experience.

Era
2011 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
futuristicimmersivedramatic
Explore

Live demo

View code
<main class="sc">
  <div class="floor"></div>
  <div class="cube">
    <i class="f1"></i><i class="f2"></i><i class="f3"></i><i class="f4"></i><i class="f5"></i><i class="f6"></i>
  </div>
  <div class="hud"><b>SCENA 3D</b><span>rendering · 60 fps</span></div>
</main>
body{margin:0;height:100vh;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#1B1F4B,#05060F 70%);font-family:'Space Grotesk',sans-serif;color:#E8ECFF}
.sc{position:absolute;inset:0;perspective:700px;perspective-origin:50% 35%;display:grid;place-items:center}
.floor{position:absolute;left:-50%;right:-50%;bottom:-40%;height:120%;background:linear-gradient(#6C5CE7 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,#6C5CE7 1px,transparent 1px) 0 0/48px 48px;transform:rotateX(78deg);-webkit-mask:linear-gradient(transparent,#000 60%);mask:linear-gradient(transparent,#000 60%);opacity:.55}
.cube{--s:110px;width:var(--s);height:var(--s);position:relative;transform-style:preserve-3d;transform:translateY(-20px) rotateX(-24deg) rotateY(38deg)}
.cube i{position:absolute;inset:0;border:1.5px solid #00E5FF;background:linear-gradient(135deg,#6C5CE755,#FF4FD833);box-shadow:inset 0 0 30px #00E5FF55,0 0 24px #6C5CE766}
.f1{transform:translateZ(calc(var(--s)/2))}.f2{transform:rotateY(180deg) translateZ(calc(var(--s)/2))}
.f3{transform:rotateY(90deg) translateZ(calc(var(--s)/2))}.f4{transform:rotateY(-90deg) translateZ(calc(var(--s)/2))}
.f5{transform:rotateX(90deg) translateZ(calc(var(--s)/2))}.f6{transform:rotateX(-90deg) translateZ(calc(var(--s)/2))}
.hud{position:absolute;left:18px;top:16px;display:grid;gap:2px;font-size:12px;letter-spacing:.14em}
.hud b{font-size:15px;color:#00E5FF}.hud span{opacity:.6}
@media (prefers-reduced-motion:no-preference){
  .cube{animation:spin 9s linear infinite}
  .floor{animation:grid 2.4s linear infinite}
  @keyframes spin{from{transform:translateY(-20px) rotateX(-24deg) rotateY(0)}50%{transform:translateY(-34px) rotateX(-24deg) rotateY(180deg)}to{transform:translateY(-20px) rotateX(-24deg) rotateY(360deg)}}
  @keyframes grid{to{background-position:0 48px,0 48px}}
}

Characteristics

  • Real-time rendering on a WebGL or WebGPU canvas
  • Camera orbiting or driven by scroll
  • Glossy materials and physical lighting
  • Custom shaders for liquid or glow effects
  • HTML interface layered over the scene

Palette

Click a swatch to copy it

Typography

Headings · Space Grotesk WebGL 3D Scene

Body · Inter Real three-dimensional objects with lights, reflections and depth, rendered live inside the web page. They rotate with the mouse, react to scroll and turn a site into an experience.

Motion

Easing
damping / lerp 0.05–0.1 sulla camera
Typical duration
loop continuo a 60 fps; transizioni di camera 800–1500 ms
Techniques
Three.js, React Three Fiber, WebGL / WebGPU, shader GLSL, OrbitControls, GSAP ScrollTrigger sulla camera, CSS 3D transforms come fallback

Accessibility (reduced motion)

Stop auto-rotation and show a fixed shot; leave camera control to the user. Offer a static image on slow devices.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: WebGL 3D Scene (Scena 3D WebGL, Escena 3D WebGL).
Real three-dimensional objects with lights, reflections and depth, rendered live inside the web page. They rotate with the mouse, react to scroll and turn a site into an experience.
Characteristics: Real-time rendering on a WebGL or WebGPU canvas, Camera orbiting or driven by scroll, Glossy materials and physical lighting, Custom shaders for liquid or glow effects, HTML interface layered over the scene.
Palette: #05060F, #1B1F4B, #6C5CE7, #00E5FF, #FF4FD8, #E8ECFF.
Typography: headings in Space Grotesk, body text in Inter (Google Fonts or equivalents).
Mood: futuristic, immersive, dramatic.
Motion: easing damping / lerp 0.05–0.1 sulla camera, typical duration loop continuo a 60 fps; transizioni di camera 800–1500 ms; techniques: Three.js, React Three Fiber, WebGL / WebGPU, shader GLSL, OrbitControls, GSAP ScrollTrigger sulla camera, CSS 3D transforms come fallback.
With prefers-reduced-motion: Stop auto-rotation and show a fixed shot; leave camera control to the user. Offer a static image on slow devices.
References: Three.js, React Three Fiber, Bruno Simon portfolio (2019), Awwwards «Site of the Year» in WebGL.

Relations

Derives from: Flash EraFlash EraInfluenced: WebGL fluid cursorWebGL fluid cursorSimilar to: ASCII and dither shaderASCII and dither shaderSimilar to: 2.5D camera projection2.5D camera projectionSimilar to: 3D Carousel3D CarouselSimilar to: Liquid DistortionLiquid DistortionSimilar to: Spatial UISpatial UISimilar to: ParticlesParticlesContrasts with: Low-tech dithered webLow-tech dithered webContrasts with: Flat DesignFlat DesignWebGL 3D Scene
Derives fromInfluencedSimilar toContrasts withSee in the graph →

References

  • Three.js
  • React Three Fiber
  • Bruno Simon portfolio (2019)
  • Awwwards «Site of the Year» in WebGL