Skip to content

ShowcaseMotion

Planet Slider

Space hero: 3D planets turn in WebGL, and the camera pans past the stars to the next one.

Live, interactive React component · light themeResponsive

About the Showcase Planet Slider

A space hero like an observatory's poster: a deep sky of seeded star fields and a faint nebula, and the planet, a real globe drawn in WebGL from a map of its surface, turning slowly, lit from one side with a night side and a rim of atmosphere in its own colour; a ringed planet's rings cross in front of it, fall into its shadow and cast their own on it. It floats in front of its name, set huge across the frame, with its facts along the bottom. Changing planet swings the camera on: the star fields slide past at their own depths (the sky repeats, so it never runs out), the old planet and its name drift out of focus, the next planet glides in from the other side, its name forms letter by letter and every figure counts from the last planet's to this one's. Only the planet on show turns, and only while the slider is on screen. Swipe, drag, the arrow keys and the planet tabs move it; autoplay fills the line under the current tab and holds on hover, on focus, off screen and with the motion pause, and under reduced motion planets cross-fade and stand still. Without WebGL2 each planet is a flat disc of its map. No 3D library: a small shader of its own. Set in the kit's Poppins and JetBrains Mono. Client component.

It is part of Showcase: a standalone showpiece with its own type, palette and pictures. The style’s 5 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.

To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.

The pieces that sit beside this one in the same style.