Components general

HorizontalScroll

A horizontal image gallery that moves in response to vertical scrolling. The container occupies extra vertical space, so as the user scrolls down, images slide horizontally across the viewport, creating an immersive portfolio or gallery experience.

Updated Mar 6, 2026

HorizontalScroll

A horizontal image gallery that moves in response to vertical scrolling. The container occupies extra vertical space, so as the user scrolls down, images slide horizontally across the viewport, creating an immersive portfolio or gallery experience.

Use Cases

  • Portfolio or project showcases
  • Product image galleries
  • Team member photos
  • Event or venue photo strips

Properties

items

Array of images to display horizontally. Type: array.

itemSize

small = 250px, medium = 300px, large = 400px (width and height). Type: string. Options: small, medium, large. Default: medium

scrollHeight

Total scroll height in vh (viewport heights). More height = slower scroll, smoother reveal. Type: number. Default: 300

customCss

Custom CSS property pairs. Type: string.

Best Practices

  • Use 6-16 images for the best visual effect
  • Use consistent image aspect ratios (square works best)
  • Set scrollHeight to 300vh for a natural scroll pace
  • Use high-quality images — they’re displayed prominently

Common Mistakes

Using only 2-3 images

Why it's a problem: The horizontal scroll effect is barely noticeable with few images — not enough travel distance

Fix: Use at least 6 images to fill the horizontal space

Setting scrollHeight below 200

Why it's a problem: Images scroll past too quickly to appreciate

Fix: Use 300vh (default) for a comfortable scroll pace

Tags

horizontalscroll animations portfolio or product image team member

Related Components

Ready to build?

Start creating your app for free with Qödiak.

Get Started Free

Related Articles

AnimatedGradient

Smooth animated gradient background for modern, premium aesthetics. Supports linear and radial gradients with configurable colors, animation speed, and intensity. GPU‑accelerated for smooth 60fps performance.

Button

Interactive button component that supports link navigation, page data source operations (record navigation, new record, mode switching), form submission, and custom JavaScript execution. Save/Delete actions must use a custom‑script with navigation. Two visual variants are available, and the button can be enabled or disabled dynamically based on data context.

Calendar

A full‑featured calendar component built with react‑big‑calendar. It can display events in month, week, day, or agenda views and includes navigation and view‑switching capabilities, making it suitable for any site that needs scheduling, event management, or date visualization.

Card

Feature card component with an icon, title, description, and entrance animations. Ideal for showcasing features, services, or benefits in grid layouts with animation support.

Checkbox

A checkbox group component that lets users select multiple options from a predefined list. It renders a set of checkboxes with individual labels and can be arranged vertically or horizontally.

CountdownTimer

Real-time countdown timer component that displays the time remaining until a target date/time. It updates every second, offers customizable formatting, and shows a completion message when the countdown ends. Suitable for any site type.