Catalog npm
PACKAGE EXPLORERView in registry

3dscroll

npm

A scroll-based 3D animation component for React.

3d scroll animationglbgltfgsapr3freactreact componentreact-three-fiberscroll 3d modelscroll animationscroll-based animationthree.jstypescriptscrollthree
Versions collected9
Direct dependencies13From release 1.0.8
Last observed20 Oct, 19:40 UTC

README

Current package documentation

3dscroll

📹 Watch the tutorial → x.com/DieselSharma/status/1949003509309080062

A plug-and-play React + Three.js scroll animation component for 3D .glb models.


✨ Features


📦 Installation

npm install 3dscroll

🚀 Usage

"use client";
import { ThreeScene } from "3dscroll";

export default function App() {
  const phases = [
    { position: [0, 0, -15], rotation: [0, 0, 0], scale: 1, opacity: 1 },
    { position: [0, 5, -15], rotation: [0, 0, 0], scale: 1.5, opacity: 0.5 },
    { position: [0, 0, -15], rotation: [0, 0, 0], scale: 2, opacity: 0.2 },
    { position: [0, 5, -15], rotation: [0, 0, 0], scale: 1, opacity: 1 },
  ];

  return (
    <div style={{ background: "black", minHeight: "100vh" }}>
      <ThreeScene
        modelPath="/model.glb"
        phases={phases}
        phaseSize={2} // optional, default is 2
      />
    </div>
  );
}

📁 Props

PropTypeDescription
modelPathstringPath to your .glb model (must be placed in public/)
phasesarrayAnimation steps for position, rotation, scale, opacity
phaseSizenumberScroll height multiplier per phase (default = 2)

🔧 Built With


🧠 Author

Made with ❤️ by @3diesel
Follow on Twitter/X


Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 9

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.8Registry latest26 Jul 202513
1.0.723 Jul 202513
1.0.623 Jul 20250
1.0.523 Jul 202510
1.0.423 Jul 202510
1.0.323 Jul 202510
1.0.223 Jul 20254
1.0.123 Jul 20254
1.0.023 Jul 20254

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ba3f432b785ced8aa1e8213c517d3f005d2062ecbc278024f660d1cd03e1eecd