CSS 3D & Perspective
Stereographic Star Dome
150 billboard stars placed on a CSS 3D hemisphere slowly wheel about the polar axis; pointer nudges spin speed and clicking accelerates rotation.
cssmedium complexitysubtle motionpointer
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Dark-mode hero backgrounds, space/astronomy themes, ambient looping screensavers requiring depth.
When not to
Light backgrounds (hardcoded near-black), low-end mobile (150 DOM nodes with 3D transforms), or layouts needing legible text overlays.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Increase star count to 200 by changing N=150 to N=200, slow base drift to vel=0.06, and tint stars warm amber by editing the radial-gradient stop colors in .sd-bill.
Safe to edit
- star count (N=150)
- dome tilt angle (rotateX 58deg / TILT constant)
- base spin velocity (vel=0.12)
- star size range (1.4 + mag*4.2)
- star color (radial-gradient stops in .sd-bill)
Keep intact
- billboard counter-rotation inverse transform (rotateZ(-spin) rotateX(-58deg))
- IIFE wrapper
- visibilitychange pause/start
- reduced-motion static fallback
Known limitations
- Background color hardcoded as #05060f — must edit CSS to change
- 150 3D-transformed DOM nodes can stress mobile GPU despite no per-star will-change
- Pointer nudge only responds to horizontal axis (clientX); no vertical influence
More CSS 3D & Perspective components
- Rotating CubeGlowing sage-green wireframe cube slowly auto-rotates in CSS 3D with a subtle sine-wave tilt; pointer movement offsets the rotation to follow the cursor.
- Card Deck FanSeven gold-and-mauve playing cards fan open and closed in a sine-wave 3D arc using CSS rotateZ and perspective transform.
- Coverflow RingEight vivid gradient cards orbit in a 3D coverflow ring with CSS perspective and per-card reflections. Pointer X position steers rotation speed.
- Folding Paper4-panel paper accordion folds and unfolds in a zig-zag CSS 3D motion, slowly rotating on a dark green background. Cream front and sage back faces alternate.
- Isometric Blocks3x3 grid of soft lilac CSS 3D cubes bobs in a staggered sine wave on a dark lilac-tinted ground. Three shaded faces per cube simulate isometric lighting.
- Parallax DepthA glowing sun with colored orbiting dots on layered CSS 3D planes that tilt and parallax toward the pointer; auto-orbits until interaction.