Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsExpandStripsItem[]DEFAULT_ITEMSThe panels: an image, and optionally a label, a link and alt text.
defaultIndexnumber2The panel that is open on load, counting from 0.
accentColorstring"#ffffff"Color of the bar beside the caption and of the focus ring.
overlayColorstring"#060010"Color of the gradient under the caption and of the dimming on closed panels.
textColorstring"#ffffff"Color of the caption text.
grayscalebooleantrueDrains the color from closed panels; the open one keeps it.
showLabelsbooleantrueShows the caption on the open panel.
durationnumber0.6How 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.
parallaxnumber0.5How far the image drifts inside its panel as panels resize; 0 turns it off.
tiltnumber8How far closed panels turn away in 3D, in degrees.
staggernumber0.06The 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.
heightnumber460The height of the row in pixels (the width of the column when vertical).
gapnumber10The space between panels, in pixels.
radiusnumber16The corner radius of each panel, in pixels.
expandRationumber0.52The 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.
classNamestringNone

More media components in Pro

View all

Related