Scrollstable
Louvre
Rotating blinds reveal
Sticky blinds whose slats rotate away to reveal the section behind them.
Scaled down to fit the frame, so one full turn of the blinds is visible here. On a page the pane is the viewport and it reads page scroll.
Customize
Blindsslat geometry and reveal wave
8
slatsorientation0.70
phase900 px
perspective2 px
gap0.60
shade340cqh
scrollLengthUsage
import { Louvre } from "zerogravity/louvre"
<Louvre
front={<Cover />}
back={<Revealed />}
/>Generated from the controls above. Only props that differ from their defaults are shown.
Props
| Property | Type | Default | Description |
|---|---|---|---|
slats | number | 8 | Slats. Range 3 to 24. |
orientation | "horizontal" | "vertical" | "horizontal" | Orientation. |
phase | number | 0.7 | Phase. Range 0 to 1.5. |
perspective | number | 900 | Perspective. Range 500 to 2600 px. |
gap | number | 2 | Gap. Range 0 to 12 px. |
shade | number | 0.6 | Shade. Range 0 to 1. |
scrollLength | string | "340cqh" | Scroll length. Range 150 to 500 cqh. |
front | ReactNode | — | What the closed blinds show. |
back | ReactNode | — | What is revealed once the slats open. |
scrollContainer | RefObject<HTMLElement> | — | Drive the reveal from a scrollable element instead of the page. |
disabled | boolean | false | Skip the transition and show the back section. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.