Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@immersive-scroll/horizontal-scroll

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@immersive-scroll/horizontal-scroll

Scroll-driven horizontal scroll effect for immersive galleries.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@immersive-scroll/horizontal-scroll

A high-performance React component for creating horizontal scroll sections pinned to vertical viewport progress.

Installation

pnpm add @immersive-scroll/horizontal-scroll gsap

Usage

import { HorizontalScrollContainer } from '@immersive-scroll/horizontal-scroll';

export function ProductGallery() {
  return (
    <HorizontalScrollContainer scrub={1} pin={true} start="top top">
      <div className="horizontal-track">
        <ProductCard id={1} />
        <ProductCard id={2} />
        <ProductCard id={3} />
      </div>
    </HorizontalScrollContainer>
  );
}

Props

PropTypeDefaultDescription
childrenReact.ReactNodeRequiredThe content to be translated horizontally.
classNamestring''CSS class for the pinned container.
trackClassNamestring''CSS class for the horizontal track.
startstring | number'top top'ScrollTrigger start position.
scrubboolean | number1Smoothness of the horizontal translation.
pinbooleantrueWhether to pin the container during horizontal traversal.

Why use this?

Most horizontal scroll implementations rely on fragile CSS hacks or heavy intersection observer logic. @immersive-scroll/horizontal-scroll uses GSAP and ScrollTrigger under the hood to ensure:

  • Pixel-Perfect Sync: Movement is tied directly to the vertical scroll delta.
  • Hardware Acceleration: Uses will-change: transform and optimized GPU layers.
  • Automatic Resizing: Recalculates metrics on window resize for flawlessly responsive tracks.
  • Zero Layout Shifting: The container pins in place, preventing jarring page JUMP.

FAQs

Package last updated on 21 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts