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/react

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@immersive-scroll/react

React adapter for immersive scroll video.

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
13
30%
Maintainers
1
Weekly downloads
 
Created
Source

@immersive-scroll/react

React adapter for immersive scroll scenes. It bundles the provider, viewport/canvas composition, hooks, scrollbar, debug panel, and helper components needed to build scroll-driven storytelling UIs in React.

Install

pnpm add @immersive-scroll/react

Main exports

  • ImmersiveScroll: root component that pins the viewport and drives the engine.
  • ImmersiveLayer: overlay layer for HUDs, gradients, controls, and floating chrome.
  • ImmersiveFloating, ImmersiveTriggerZone, ImmersiveScrollbar, ImmersiveDebugPanel
  • Hooks including useImmersiveFrame(), useImmersiveProgress(), useImmersiveScroll(), useImmersiveScrollbar(), and useImmersiveConfigControls()
  • Shared config exports including DEFAULT_IMMERSIVE_CONFIG, deepMerge(), ImmersiveConfig, and PartialImmersiveConfig

Quick start

import {
  ImmersiveLayer,
  ImmersiveScroll,
  useImmersiveConfigControls,
  useImmersiveProgress
} from '@immersive-scroll/react';

function ProgressBadge() {
  const { progress } = useImmersiveProgress();
  return <span>Progress {Math.round(progress * 100)}%</span>;
}

export function StoryScene() {
  const sceneControls = useImmersiveConfigControls({
    initialConfig: {
      scrollbar: { enabled: true, visibilityMode: 'manual' }
    }
  });

  return (
    <ImmersiveScroll
      framesPath="/immersive/story"
      config={sceneControls.config}
      overlay={
        <ImmersiveLayer>
          <ProgressBadge />
        </ImmersiveLayer>
      }
    >
      <section>Story content</section>
    </ImmersiveScroll>
  );
}

Notes

  • The component tree is client-side and expects a public frame folder or explicit manifest path.
  • Pinned scenes default to a fixed full-screen viewport with a full-bleed media layer.
  • Scrollbar placement and interactivity can be controlled through config or scrollbarProps.
  • Use viewportProps or mediaProps only when a route needs sticky, absolute, offset, or custom z-index placement.
  • useImmersiveConfigControls() is useful for toolbars, preview knobs, and any route-level UI that needs to patch scene config without hand-writing nested state.
  • For Next.js-specific client wrappers, use @immersive-scroll/next.

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