Motion

Scroll Horizontal Gallery

Galleries 84

About

A horizontal gallery that scrolls sideways as you scroll down. Uses sticky positioning with scroll-linked x translation.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Scroll Horizontal Gallery to your project and fits it to your theme.

Code

How Scroll Horizontal Gallery is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import ScrollHorizontal from "@/components/ui/motion-scroll-horizontal"

export default function Default() {
  return (
    <div className="motion-example flex w-full items-center justify-center p-6">
      <ScrollHorizontal />
    </div>
  )
}

Dependencies

More by Motion

View all
  • Material design ripple

    Material design ripple

    626
  • Scroll word reveal

    Scroll word reveal

    243
  • Confetti

    Confetti

    200
  • Floating Action Button

    Floating Action Button

    114
  • Split text

    Split text

    74
  • Fill text

    Fill text

    74
  • Skeleton shimmer

    Skeleton shimmer

    63
  • Create Button

    Create Button

    60

More in Galleries

View all
  • Scattered About

    Scattered About

    14
  • Animated Gallery

    Animated Gallery

    1.5K
  • Photo Deck

    Photo Deck

    4
  • Gallery Component

    Gallery Component

    5
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Elastic Gallery

    Elastic Gallery

    1.1K
  • Image Gallery

    Image Gallery

    130
  • Folded Card

    Folded Card

    42