More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | Array<string | { image: string; link?: string; alt?: string }> | [] | Images for the posters. Each one is cropped to fill its poster, and they repeat to fill the view. |
planeWidth | 320 | Width of each poster in pixels at the default camera. | |
planeHeight | 320 | Height of each poster in pixels at the default camera. | |
distortion | 3 | How far one corner of a poster turns ahead of the other, which gives the twist. | |
scrollEase | 0.01 | How quickly the posters catch up with the wheel and drag. Lower values glide longer. | |
cameraFov | 45 | Field of view of the camera in degrees. Wider angles zoom out. | |
cameraZ | 20 | Distance of the camera from the posters. Higher values show them smaller and flatter, lower values bring them close with stronger perspective. | |
gap | Space between posters in pixels. Defaults to the original spacing, which follows the camera. | ||
rotation | 180 | How far each poster turns while it crosses the view, in degrees. | |
axis | 'vertical' | 'horizontal' | 'diagonal' | 'vertical' | Axis the posters turn around. |
columns | Number of poster columns. | ||
columnGap | 40 | Space between columns in pixels. | |
alternate | Moves every other column in the opposite direction. | ||
radius | Corner radius of the posters in pixels. | ||
speed | Drift in pixels per second while nobody scrolls. Negative values drift down. | ||
lean | How far the posters lean back with fast scrolling. | ||
fade | Fades the posters out toward the top and bottom edges, from 0 to 1. | ||
shading | Darkens the posters as they turn away, from 0 to 1. | ||
wheel | Scrolls the posters with the mouse wheel while hovered. | ||
drag | Scrolls the posters by dragging them. | ||
pageScroll | Moves the posters along with the page scroll, as a multiplier. 0 turns it off. | ||
onItemClick | (item, index) => void | Called when a poster is clicked or tapped. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
itemsArray<string | { image: string; link?: string; alt?: string }>Images for the posters. Each one is cropped to fill its poster, and they repeat to fill the view.
[]planeWidthnumberWidth of each poster in pixels at the default camera.
320planeHeightnumberHeight of each poster in pixels at the default camera.
320distortionnumberHow far one corner of a poster turns ahead of the other, which gives the twist.
3scrollEasenumberHow quickly the posters catch up with the wheel and drag. Lower values glide longer.
0.01cameraFovnumberField of view of the camera in degrees. Wider angles zoom out.
45cameraZnumberDistance of the camera from the posters. Higher values show them smaller and flatter, lower values bring them close with stronger perspective.
20gapnumberSpace between posters in pixels. Defaults to the original spacing, which follows the camera.
rotationnumberHow far each poster turns while it crosses the view, in degrees.
180axis'vertical' | 'horizontal' | 'diagonal'Axis the posters turn around.
'vertical'columnsnumberNumber of poster columns.
columnGapnumberSpace between columns in pixels.
40alternatebooleanMoves every other column in the opposite direction.
radiusnumberCorner radius of the posters in pixels.
speednumberDrift in pixels per second while nobody scrolls. Negative values drift down.
leannumberHow far the posters lean back with fast scrolling.
fadenumberFades the posters out toward the top and bottom edges, from 0 to 1.
shadingnumberDarkens the posters as they turn away, from 0 to 1.
wheelbooleanScrolls the posters with the mouse wheel while hovered.
dragbooleanScrolls the posters by dragging them.
pageScrollnumberMoves the posters along with the page scroll, as a multiplier. 0 turns it off.
onItemClick(item, index) => voidCalled when a poster is clicked or tapped.
Extra class names for the container.
Inline styles for the container.



