Back to AIX Effects LibraryQA Verified · Synced
Layout & Gallery/<HorizontalScrollGallery />·Intermediate

Horizontal Scroll Gallery

Carefully releases wheel events at track start/end bounds while delivering snappy horizontal motion and velocity skew.

Next.js 16+React 19TypeScriptTailwind CSSZero External Deps
Wheel scroll, drag, or scrub track0%
01 / FRAME
Modular Deck
Snap-x rail track
02 / SKEW
Velocity Lean
±6deg inertia
03 / WHEEL
Smart Wheel
Auto edge release
04 / MOBILE
Touch Drag
Mandatory scroll snap
skewStrength: 6deg

Scroll wheel over cards, drag horizontally, or adjust scrub bar.

Installation

Zero External Dependencies

Zero external dependencies required.

Usage

import { HorizontalScrollGallery } from '@/components/effects/library/layout/HorizontalScrollGallery'

<HorizontalScrollGallery
  skewStrength={6}
  slides={[
    { id: '01', indexLabel: '01', title: 'Motion Frame', caption: 'Snapped modular rail', accent: '#536dfe' },
    { id: '02', indexLabel: '02', title: 'Inertia Skew', caption: 'Velocity-driven tilt', accent: '#8765f7' },
    { id: '03', indexLabel: '03', title: 'Rail Track', caption: 'Zero scrollbar clutter', accent: '#30bfef' },
  ]}
/>

Props & API Reference

3 props
PropTypeDefaultDescriptionEffect
slidesHorizontalGallerySlide[](required)Ordered gallery card slides.Snaps cleanly across horizontal track.
skewStrengthnumber6Maximum velocity-coupled skew angle in degrees.Adds tactile momentum lean.
progressnumber | nullnullOptional externally controlled progress fraction (0..1).Allows programmatic or slider scrubbing.

More in Layout & Gallery

View All 36 →
Click any grid card to expand focus span
stiffness: 340 · damping: 28

Expandable Grid

Interactive 2-column Bento showcase that expands selected cards smoothly with spring reflow.

View Details
Hover or focus any card below
01 · OPTIC
Precision Card

Sharp contrast when focused.

02 · DEPTH
Neighbor Dimming

Sibling cards step back calmly.

03 · PURE CSS
Zero Packages

Works across mouse, touch & keyboard.

blur 2.5px · dim 0.42 · scale 1.03

Focus Gallery

Focused card sharpens and elevates cleanly while unselected siblings softly dim and blur.

View Details
Hover horizontally or drag slider
01 · Foreground
Primary Layer
02 · Midground
Offset Plane
03 · Horizon
Deep Axis

Depth Parallax Gallery

Three-layer card deck translating horizontally at proportional depth speeds inside perspective space.

View Details