Expand Strips
A row of image panels: the hovered, focused or tapped one opens wide and shows its caption while the rest narrow, tilt and lose their color.
pixikit.com/docs/components/expand-strips
Customize
Default index2
Accent color
Overlay color
Text color
Grayscale
Show labels
Duration0.60s
Ease
Parallax0.50
Tilt8°
Stagger0.06s
Trigger
Height460px
Gap10px
Radius16px
Expand ratio0.52
Orientation
Props
19| Name | Type | Default | Description |
|---|---|---|---|
items | ExpandStripsItem[] | DEFAULT_ITEMS | The panels: an image, and optionally a label, a link and alt text. |
defaultIndex | number | 2 | The panel that is open on load, counting from 0. |
accentColor | string | "#ffffff" | Color of the bar beside the caption and of the focus ring. |
overlayColor | string | "#060010" | Color of the gradient under the caption and of the dimming on closed panels. |
textColor | string | "#ffffff" | Color of the caption text. |
grayscale | boolean | true | Drains the color from closed panels; the open one keeps it. |
showLabels | boolean | true | Shows the caption on the open panel. |
duration | number | 0.6 | How long a panel takes to open or close, in seconds. |
ease | "power1.out" | "power2.out" | "power3.out" | "power4.out" | "expo.out" | "back.out" | "power2.inOut" | "sine.inOut" | "none" | "power3.out" | The easing of every transition, by its common name. |
parallax | number | 0.5 | How far the image drifts inside its panel as panels resize; 0 turns it off. |
tilt | number | 8 | How far closed panels turn away in 3D, in degrees. |
stagger | number | 0.06 | The delay between the caption bar and its text, in seconds. |
trigger | "hover" | "click" | "hover" | What opens a panel with a mouse. Focus and tap always open it. |
height | number | 460 | The height of the row in pixels (the width of the column when vertical). |
gap | number | 10 | The space between panels, in pixels. |
radius | number | 16 | The corner radius of each panel, in pixels. |
expandRatio | number | 0.52 | The share of the row the open panel takes, from 0.2 to 0.9. |
orientation | "horizontal" | "vertical" | "horizontal" | Lays the panels out as a row or as a column. |
className | string | None |