Pin Scroll Gallery

Motion

A pinned horizontal scroll gallery: the section sticks while vertical scrolling slides frames sideways. Falls back to a three column grid for reduced motion.

src/registry/premium/pin-scroll-gallery.tsx/r/pin-scroll-gallery.json

Installation#

bash
npx shadcn@latest add @minidev/pin-scroll-gallery

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/pin-scroll-gallery.json

Usage#

tsx
import { PinScrollGallery } from "@/components/ui/pin-scroll-gallery"

export function Example() {
  return (
    <PinScrollGallery />
  )
}

API reference#

PinScrollGallery props
PropTypeDefault
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files

Examples#

All Animated React components