Scrollexperimental
Concertina
Folding panels
Panels hinged alternately, folding flat as they reach the middle of the view.
Fold
Crease
Score
Pleat
Customize
Foldpanels hinge alternately, like a folded strip of paper
72 °
angle1400 px
depth0.55
shadeUsage
<Concertina>
<ConcertinaPanel>Fold</ConcertinaPanel>
</Concertina>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
angle | number | 72 | Angle. Range 0 to 90 °. |
depth | number | 1400 | Perspective. Range 400 to 3000 px. |
shade | number | 0.55 | Shade. Range 0 to 1. |
children | ReactNode | — | One `ConcertinaPanel` per leaf. |
height | string | "62vh" | How tall each leaf is. |
scrollContainer | RefObject<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.