Default Index
2
Duration
0.6s
Parallax
0.5
Tilt
8°
Stagger
0.06s
Height
460px
Expand Ratio
0.52
Gap
10px
Radius
16px

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
18 properties
itemsArray<{ image: string; label?: string; link?: string; alt?: string }>5 sample panelsThe panels to render. Each needs an image, and optionally a label, link and alt text.
defaultIndex2Index of the panel that is expanded on load, so the gallery never looks dead.
accentColor"#ffffff"Colour of the caption accent bar and the focus ring.
overlayColor"#060010"Colour used for the bottom legibility gradient and the dimming of collapsed panels.
textColor"#ffffff"Colour of the caption text.
grayscaleDesaturate collapsed panels and restore full colour on the expanded one.
showLabelsWhether captions reveal on the expanded panel.
duration0.6Duration of the expand / collapse transition in seconds.
ease"power3.out"GSAP easing used for every transition.
parallax0.5Strength of the internal image drift as panels resize (0 disables it).
tilt8Degrees of 3D rotation applied to collapsed panels, easing to flat on the open one.
stagger0.06Delay between the caption bar and text reveal, in seconds.
trigger"hover" | "click""hover"How a panel expands on pointer devices. Focus and tap always expand too.
height460Height of the row in pixels (width of the column when vertical).
gap10Gap between panels in pixels.
radius16Corner radius of each panel in pixels.
expandRatio0.52Fraction of the row the expanded panel occupies (0.2 – 0.9).
orientation"horizontal" | "vertical""horizontal"Lay the accordion out as a row or a column.
itemsArray<{ image: string; label?: string; link?: string; alt?: string }>

The panels to render. Each needs an image, and optionally a label, link and alt text.

Default5 sample panels
defaultIndexnumber

Index of the panel that is expanded on load, so the gallery never looks dead.

Default2
accentColorstring

Colour of the caption accent bar and the focus ring.

Default"#ffffff"
overlayColorstring

Colour used for the bottom legibility gradient and the dimming of collapsed panels.

Default"#060010"
textColorstring

Colour of the caption text.

Default"#ffffff"
grayscaleboolean

Desaturate collapsed panels and restore full colour on the expanded one.

showLabelsboolean

Whether captions reveal on the expanded panel.

durationnumber

Duration of the expand / collapse transition in seconds.

Default0.6
easestring

GSAP easing used for every transition.

Default"power3.out"
parallaxnumber

Strength of the internal image drift as panels resize (0 disables it).

Default0.5
tiltnumber

Degrees of 3D rotation applied to collapsed panels, easing to flat on the open one.

Default8
staggernumber

Delay between the caption bar and text reveal, in seconds.

Default0.06
trigger"hover" | "click"

How a panel expands on pointer devices. Focus and tap always expand too.

Default"hover"
heightnumber

Height of the row in pixels (width of the column when vertical).

Default460
gapnumber

Gap between panels in pixels.

Default10
radiusnumber

Corner radius of each panel in pixels.

Default16
expandRationumber

Fraction of the row the expanded panel occupies (0.2 – 0.9).

Default0.52
orientation"horizontal" | "vertical"

Lay the accordion out as a row or a column.

Default"horizontal"

Dependencies

1 required package

npm install gsap