ONONC

Rolling Gallery

Cards mounted on a spinning 3D cylinder — drag to roll it, hover to pause.

motiondrag3D
Drag sideways or use the left and right arrow keys to spin the gallery.

Customize

Ring

Face width190px
Face height250px
Face spacing0.18

Fraction of the radius added between faces.

Tilt
Perspective1100px

Motion

Spin speed22°/s

0 stops; negative reverses.

Drag sensitivity0.22°/px
Throw friction0.94
Pause on hover

Style

Dim back faces
Corner radius18px

Props

PropTypeDefaultDescription
itemsRollingGalleryItem[]gradient setFaces around the cylinder ({ title, subtitle?, background? }).
faceWidthnumber190Face width in pixels.
faceHeightnumber250Face height in pixels.
spacingnumber0.18Extra spacing between faces, as a fraction of the radius.
speednumber22Auto-spin speed in °/s (0 disables; negative reverses).
sensitivitynumber0.22Degrees of spin per pixel of horizontal drag.
frictionnumber0.94Inertia decay per frame after a drag (0.8–0.98).
pauseOnHoverbooleantruePause the auto-spin while the pointer is over the ring.
tiltnumber6Forward tilt of the whole cylinder, in degrees.
perspectivenumber1100Scene perspective in pixels (smaller = stronger 3D).
dimbooleantrueDim faces as they rotate to the back.
radiusnumber18Face corner radius in pixels.
labelstring"Rolling gallery"Accessible name for the gallery region.