For Tailwind CSS v3 docs, click here.

Bending Gallery

A curved, scrollable 3D gallery with dynamic image cards and animated text rendered using WebGL and OGL.

API

Prop NameTypeDefaultDescription
items{ image: string; text: string }[][]Array of objects containing image URLs and accompanying text.
bendnumber3Controls the curvature of the gallery. Higher values bend more.
textColorstring"#ffffff"Color of the text displayed below each image.
borderRadiusnumber0.05Rounded corners for image cards (in UV space).
fontstring"bold 30px DM Sans"Font used for the text below each image.

Features

  • Curved Layout: Creates a 3D bending effect across the scrollable gallery.
  • Image & Text Support: Each item includes an image with dynamic text rendered via canvas.
  • Customizable Props: Bend amount, border radius, font, and colors are fully configurable.
  • WebGL Rendering: Utilizes OGL for GPU-accelerated visuals.
  • Smooth Interactions: Drag or scroll with momentum and responsive snapping.
  • Autoloop Gallery: Seamlessly scroll through items in an infinite loop-like experience.

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://registry.inspira-ui.com/bending-gallery.json"

Install Manually

Copy and paste the following code

Credits