Catalog npm
Back to packageRELEASE DETAILS

1.0.6

npm

3dscroll

A scroll-based 3D animation component for React.

3d scroll animationglbgltfgsapr3freactreact componentreact-three-fiberscroll 3d modelscroll animationscroll-based animationthree.jstypescriptscrollthree
Published23 Jul 2025
Direct dependencies0
Transitive dependenciesNot calculated

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.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "869ad0956ac7e819d78e7c3521b294b1bad9947d",
  "tarball": "https://registry.npmjs.org/3dscroll/-/3dscroll-1.0.6.tgz",
  "fileCount": 6,
  "integrity": "sha512-8figjBG1jWjMsj19s3HOOWJAA6kp/CsMlA+IDM3JWSRbV/ROujYVVzDUIaefzer20xwVsvH0iQsPUR3H/5N1UQ==",
  "signatures": [
    {
      "sig": "MEQCIED9aC5GnXoWzt87i0S7liEb9oeXG+M363UXyIrZcGfHAiAz2Lc2ZMOQVw7UEewPvgkd2KE6qvJ+AFFHfNB/9SJH9w==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 14742
}

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_version:c65bc7a950a5ffd0313aaf5c4eafd4d8ea143bea01cbbbc00d105dcf02b96578

Other collected versions

1.0.826 Jul1.0.723 Jul1.0.523 Jul1.0.423 Jul1.0.323 Jul1.0.223 JulView all collected versions →