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.

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.

More optionsFewer options

Also rolls it forward, so the top and bottom show.

Distance

How close the camera is; closer looks bigger.

Color

The color of the object.

Draws the triangles' edges instead of a lit surface.

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.

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 GitHub

What it is

The full explanation is in README.md.

Good for

  • Product showcases
  • Hero sections
  • Logos
  • 3D previews

Avoid on

  • Long reading pages
  • Low-power devices