Puzzle cube

A 3x3 cube made of 27 real cubies. Scramble it and layers turn one by one. Solve plays the same moves backwards. Drag to look around.

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

RubiksCube3D props

PropTypeDefaultDescription
sizenumber210Edge length of the whole cube in px.
turnSecondsnumber0.32Seconds per layer turn when scrambling.
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