Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsPosterRibbonItem[]DEFAULT_ITEMSImages for the posters. Each one is cropped to fill its poster, and they repeat to fill the view.
planeWidthnumber320Width of each poster in pixels at the default camera.
planeHeightnumber320Height of each poster in pixels at the default camera.
distortionnumber3How far one corner of a poster turns ahead of the other, which gives the twist.
scrollEasenumber0.01How quickly the posters catch up with the wheel and drag. Lower values glide longer.
cameraFovnumber45Field of view of the camera in degrees. Wider angles zoom out.
cameraZnumber20Distance of the camera from the posters. Higher values show them smaller and flatter.
gapnumberNoneSpace between posters in pixels. Unset, it is 150 at the default camera.
rotationnumber180How far each poster turns while it crosses the view, in degrees.
axis"vertical" | "horizontal" | "diagonal""vertical"Axis the posters turn around.
columnsnumber1Number of poster columns.
columnGapnumber40Space between columns in pixels.
alternatebooleantrueMoves every other column in the opposite direction.
radiusnumber0Corner radius of the posters in pixels.
speednumber0Drift in pixels per second while nobody scrolls. Negative values drift down.
leannumber0How far the posters lean back with fast scrolling.
fadenumber0Fades the posters out toward the top and bottom edges, from 0 to 1.
shadingnumber0Darkens the posters as they turn away, from 0 to 1.
wheelbooleantrueScrolls the posters with the mouse wheel while hovered.
dragbooleantrueScrolls the posters by dragging them.
pageScrollnumber0Moves the posters along with the page scroll, as a multiplier. 0 turns it off.
onItemClick(item: PosterRibbonItem, index: number) => voidNoneCalled when a poster is clicked or tapped.
classNamestringNoneExtra class names for the container.
styleCSSPropertiesNoneInline styles for the container.

Related