Kinetic UI
Back to Introduction
Scroll Animations

Horizontal Scroll

A creative scroll-linked animation component that translates vertical page scrolling into horizontal container movement.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add horizontal-scroll

The HorizontalScroll component is a high-impact layout technique often used in Awwwards-winning websites to showcase portfolios, image galleries, or features. It leverages Framer Motion's useScroll and useTransform hooks to hijack the vertical scroll and map it to a horizontal X-axis translation.

Live Preview

Horizontal Scroll
Scroll Down

Cinematic Horizons

Explore the vast unknown in 4K resolution.

Urban Jungle

The concrete metropolis illuminated by neon.

Abstract Flow

Fluid dynamics captured in real-time.

Deep Space

Nebulas and galaxies beyond our reach.

Minimalist Geometry

Clean lines and sharp contrasts.

The Final Frontier

Where our journey ends, another begins.

End of Section

Installation

npx kinetic-ui-cli@latest add horizontal-scroll

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { HorizontalScroll } from "@/components/creative/horizontal-scroll";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { HorizontalScroll } from "@/components/creative/horizontal-scroll";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <HorizontalScroll
        containerRef{/* value */}
      >
        <div>Content goes here</div>
      </HorizontalScroll>
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.