Folding screen

One picture cut across hinged panels that zig-zag shut and unfold flat. Each panel hangs on the one before it.

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

FoldPanels3D props

PropTypeDefaultDescription
childrenReactNodeThe picture, drawn across all panels. Give it a full-bleed background.
panelsnumber5Number of panels.
panelWidthnumber90Width of one panel in px.
heightnumber260Height of the panels in px.
anglenumber66Fold angle at fully folded, in degrees.
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