Torus

A doughnut drawn as a hoop of circles standing on edge, tinted round the colour wheel. It tumbles and pauses on hover.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Torus3D props

PropTypeDefaultDescription
sizenumber260Outer diameter in px.
ringsnumber36How many circles make up the ring.
tubenumber0.26Tube thickness as a fraction of the outer size.
secondsnumber14Seconds per tumble.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks