Card Height
0.5
Gap
12px
Radius
0px
Lens Width
0.74
Lens Height
1.18
Tilt
62°
Roundness
Bend
0.34
Reach
0.38
Dispersion
0.45
Liquid
0
Squeeze
0.2
Interval
4s

More components in Pro

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

View all 255
27 properties
itemsArray<{ src: string; alt?: string; title?: string; subtitle?: string }>12 sample photosImages shown in the row. Each keeps its natural aspect ratio unless fit is set. The alt text is announced to screen readers, the title and optional subtitle are shown above the row.
preset'liquid' | 'ribbon' | 'vortex' | 'arch''liquid'A starting shape for the invisible glass. Every lens prop below overrides the preset value when you pass it.
'rise' | 'bloom' | 'spin' | 'deal' | 'none''rise'Entrance once the images load. Rise lifts the cards in from below, bloom fades them in while the bend forms, spin lands a fast flick, deal spreads the cards from the middle. Any input skips it.
fit'natural' | 'portrait' | 'square' | 'landscape''natural'Card shape. Natural keeps each image uncropped, the others crop every card to the same shape.
cardHeight0.5Card height as a fraction of the container height.
gap12Space between cards, in px.
radiusCorner radius of the cards, in px.
lensWidthfrom presetWidth of the invisible glass as a fraction of the container width.
lensHeightfrom presetHeight of the invisible glass as a fraction of the container width, so the bend keeps its shape at any size.
tiltfrom presetRotation of the glass in degrees. It decides where its edge crosses the row.
roundnessfrom presetShape of the glass, from a rounded rectangle at 0 to a perfect ellipse at 1.
bendfrom presetHow far the row flexes where it passes the edge of the glass. The glass itself is never drawn and the images always stay connected.
reachfrom presetWidth of the curved edge of the glass. Small values give a tight kink, large values a long smooth bend.
curl'twist' | 'rise' | 'fall'from presetWhich way the ends of the row flex. Twist sends the left end down and the right end up, rise lifts both, fall drops both.
dispersionfrom presetRainbow splitting of light, only where the edge of the glass bends the images.
liquidfrom presetHow much the glass stretches and wobbles like a liquid when the row moves. Off in every preset.
followCursorfrom presetLet the lens drift after the cursor like a loupe, and return to the center when it leaves.
squeeze0.2How much the cards shrink while the row moves fast. 0 keeps them at full size.
focusOnClickClicking a card centers it and opens it: the others part, the bend melts away and the card grows. Click, drag, scroll or Escape closes it.
autoplayAdvance one card at a time. Pauses on hover, focus and interaction, and when reduced motion is on.
interval4Seconds between autoplay steps.
captionsShow the title of the centered card above the row and a counter below it.
captureWheelLet a vertical mouse wheel scroll the carousel while hovering. Horizontal wheels and trackpads always scroll it.
onChange(index: number, item) => voidCalled whenever a different card reaches the center.
onSelect(index: number, item) => voidCalled when the centered card is clicked or Enter is pressed. Clicking a side card centers it first.
Extra classes on the container.
Inline styles on the container.
itemsArray<{ src: string; alt?: string; title?: string; subtitle?: string }>

Images shown in the row. Each keeps its natural aspect ratio unless fit is set. The alt text is announced to screen readers, the title and optional subtitle are shown above the row.

Default12 sample photos
preset'liquid' | 'ribbon' | 'vortex' | 'arch'

A starting shape for the invisible glass. Every lens prop below overrides the preset value when you pass it.

Default'liquid'
intro'rise' | 'bloom' | 'spin' | 'deal' | 'none'

Entrance once the images load. Rise lifts the cards in from below, bloom fades them in while the bend forms, spin lands a fast flick, deal spreads the cards from the middle. Any input skips it.

Default'rise'
fit'natural' | 'portrait' | 'square' | 'landscape'

Card shape. Natural keeps each image uncropped, the others crop every card to the same shape.

Default'natural'
cardHeightnumber

Card height as a fraction of the container height.

Default0.5
gapnumber

Space between cards, in px.

Default12
radiusnumber

Corner radius of the cards, in px.

lensWidthnumber

Width of the invisible glass as a fraction of the container width.

Defaultfrom preset
lensHeightnumber

Height of the invisible glass as a fraction of the container width, so the bend keeps its shape at any size.

Defaultfrom preset
tiltnumber

Rotation of the glass in degrees. It decides where its edge crosses the row.

Defaultfrom preset
roundnessnumber

Shape of the glass, from a rounded rectangle at 0 to a perfect ellipse at 1.

Defaultfrom preset
bendnumber

How far the row flexes where it passes the edge of the glass. The glass itself is never drawn and the images always stay connected.

Defaultfrom preset
reachnumber

Width of the curved edge of the glass. Small values give a tight kink, large values a long smooth bend.

Defaultfrom preset
curl'twist' | 'rise' | 'fall'

Which way the ends of the row flex. Twist sends the left end down and the right end up, rise lifts both, fall drops both.

Defaultfrom preset
dispersionnumber

Rainbow splitting of light, only where the edge of the glass bends the images.

Defaultfrom preset
liquidnumber

How much the glass stretches and wobbles like a liquid when the row moves. Off in every preset.

Defaultfrom preset
followCursorboolean

Let the lens drift after the cursor like a loupe, and return to the center when it leaves.

Defaultfrom preset
squeezenumber

How much the cards shrink while the row moves fast. 0 keeps them at full size.

Default0.2
focusOnClickboolean

Clicking a card centers it and opens it: the others part, the bend melts away and the card grows. Click, drag, scroll or Escape closes it.

autoplayboolean

Advance one card at a time. Pauses on hover, focus and interaction, and when reduced motion is on.

intervalnumber

Seconds between autoplay steps.

Default4
captionsboolean

Show the title of the centered card above the row and a counter below it.

captureWheelboolean

Let a vertical mouse wheel scroll the carousel while hovering. Horizontal wheels and trackpads always scroll it.

onChange(index: number, item) => void

Called whenever a different card reaches the center.

onSelect(index: number, item) => void

Called when the centered card is clicked or Enter is pressed. Clicking a side card centers it first.

Extra classes on the container.

Inline styles on the container.

Dependencies

1 required package

npm install ogl