Skip to content
Image Effects

PerspectiveGallery

A row of pictures in 3D. One faces you and the rest turn away. Drag, click a side picture, or use the arrow keys.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
imagesPerspectiveGalleryItem[]—Two or more pictures, each with src and alt. The middle one starts in front.
tiltnumber52How far the side pictures turn away, in degrees.
labelstring"Picture gallery"Read by screen readers.
classNamestring"h-72 w-full"Set the size here. The pictures fill its height.