Current collected state Current
Observed since 20 Oct, 19:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A scroll-based 3D animation component for React.
📹 Watch the tutorial → x.com/DieselSharma/status/1949003509309080062
A plug-and-play React + Three.js scroll animation component for 3D .glb models.
phases arraythree, @react-three/fiber, @react-three/drei, and gsapnpm install 3dscroll
"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>
);
}
| Prop | Type | Description |
|---|---|---|
modelPath | string | Path to your .glb model (must be placed in public/) |
phases | array | Animation steps for position, rotation, scale, opacity |
phaseSize | number | Scroll height multiplier per phase (default = 2) |
three@react-three/fiber@react-three/dreigsapreact, typescript, and rollup for bundlingMade with ❤️ by @3diesel
Follow on Twitter/X
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:40 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ba3f432b785ced8aa1e8213c517d3f005d2062ecbc278024f660d1cd03e1eecd