06.01 · 3D & Advanced
3D Model Orbit
A lit 3D shape spins, or turns to face your pointer. Best for product views.
Watch it
It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.
Inside, the white lines are the flat triangles the shape is built from. The light shines from the sun mark, so the sides facing it are brightest.
Flat color paints every triangle the same, so the shape looks like a flat cutout. Lit shades each side by how it faces the light, so it reads as solid.
Try it
Change a setting and see the difference as it moves.
Shape
The object that is drawn and lit.
Movement
Or it turns to face your pointer or finger.
Speed
How fast it spins.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a spinning 3D object to [the product or shape you want to show]. Draw it with WebGL: store the shape as triangles and light every point with a soft base light, a direct light and a shiny highlight, so it reads as solid. Turn it around its own axis so every side comes into view, or let it turn to face the pointer, which a tap or a sideways drag should also do on touch screens. Change its size by moving the camera closer or further, not by changing the lens. If the visitor has reduced motion turned on, show the object still. Match the settings listed below.
Your settings
Replace the words in brackets with your own element. Your settings are added at the end.
Free and open source. If this helped, a star on GitHub helps other people find it.
Star on GitHubWhat it is
The full explanation is in README.md.