A modern web demo showcasing a 3D token that responds to scroll interactions using Three.js and GSAP. Built with Next.js and TypeScript.
- 🎨 Interactive 3D token model using Three.js
- 📜 Smooth scroll-based animations powered by GSAP
- 🎭 Dynamic lighting and post-processing effects
- 📱 Responsive design for all devices
- ⚡ Built with Next.js for optimal performance
- Framework: Next.js 14
- 3D Graphics: Three.js, React Three Fiber, Drei
- Animations: GSAP, SplitType
- Styling: CSS Modules
- Type Safety: TypeScript
- Development: ESLint, PostCSS, Autoprefixer
- Clone the repository:
git clone [your-repo-url]
cd scrolling-token
- Set up GSAP configuration:
# Copy the example .npmrc file
cp .npmrc.example .npmrc
# Set your GSAP token in the .npmrc file
# Replace ${TOKEN} with your actual GSAP token
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser.
scrolling-token/
├── app/ # Next.js app directory
│ ├── components/ # React components
│ ├── fonts/ # Custom fonts
│ └── globals.css # Global styles
├── components/ # Shared components
│ ├── sections/ # Page sections
│ ├── ui-components/ # UI elements
│ └── utils/ # Utility components
├── public/ # Static assets
│ ├── fonts/ # Font files
│ ├── images/ # Image assets
│ └── models/ # 3D models
└── styles/ # CSS modules
npm run dev
- Start development servernpm run build
- Build for productionnpm run start
- Start production servernpm run lint
- Run ESLint
MIT