ZeroGravity UI

Scrollexperimental

Concertina

Folding panels

Panels hinged alternately, folding flat as they reach the middle of the view.

Fold
Crease
Score
Pleat
scrolls inside this frame

Customize

Foldpanels hinge alternately, like a folded strip of paper
72 °angle
1400 pxdepth
0.55shade

Usage

TSX
<Concertina>
    <ConcertinaPanel>Fold</ConcertinaPanel>
</Concertina>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

6 documented props on Concertina
PropertyTypeDefaultDescription
anglenumber72Angle. Range 0 to 90 °.
depthnumber1400Perspective. Range 400 to 3000 px.
shadenumber0.55Shade. Range 0 to 1.
childrenReactNode—One `ConcertinaPanel` per leaf.
heightstring"62vh"How tall each leaf is.
scrollContainerRefObject<HTMLElement>—Drive it from a scrollable element instead of the page.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

Experimental: still under evaluation and not part of the published package yet.