Poster Ribbon
3D posters that twist and flip as you scroll or drag through an endless column.
pixikit.com/docs/components/poster-ribbon
Customize
Plane width320px
Plane height320px
Distortion3.0
Scroll ease0.010
Camera fov45°
Camera z20
Rotation180°
Axis
Columns1
Column gap40px
Alternate
Radius0px
Speed0
Lean0.00
Fade0.00
Shading0.00
Wheel
Drag
Page scroll0.0
Props
24| Name | Type | Default | Description |
|---|---|---|---|
items | PosterRibbonItem[] | DEFAULT_ITEMS | Images for the posters. Each one is cropped to fill its poster, and they repeat to fill the view. |
planeWidth | number | 320 | Width of each poster in pixels at the default camera. |
planeHeight | number | 320 | Height of each poster in pixels at the default camera. |
distortion | number | 3 | How far one corner of a poster turns ahead of the other, which gives the twist. |
scrollEase | number | 0.01 | How quickly the posters catch up with the wheel and drag. Lower values glide longer. |
cameraFov | number | 45 | Field of view of the camera in degrees. Wider angles zoom out. |
cameraZ | number | 20 | Distance of the camera from the posters. Higher values show them smaller and flatter. |
gap | number | None | Space between posters in pixels. Unset, it is 150 at the default camera. |
rotation | number | 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 | 1 | Number of poster columns. |
columnGap | number | 40 | Space between columns in pixels. |
alternate | boolean | true | Moves every other column in the opposite direction. |
radius | number | 0 | Corner radius of the posters in pixels. |
speed | number | 0 | Drift in pixels per second while nobody scrolls. Negative values drift down. |
lean | number | 0 | How far the posters lean back with fast scrolling. |
fade | number | 0 | Fades the posters out toward the top and bottom edges, from 0 to 1. |
shading | number | 0 | Darkens the posters as they turn away, from 0 to 1. |
wheel | boolean | true | Scrolls the posters with the mouse wheel while hovered. |
drag | boolean | true | Scrolls the posters by dragging them. |
pageScroll | number | 0 | Moves the posters along with the page scroll, as a multiplier. 0 turns it off. |
onItemClick | (item: PosterRibbonItem, index: number) => void | None | Called when a poster is clicked or tapped. |
className | string | None | Extra class names for the container. |
style | CSSProperties | None | Inline styles for the container. |