Skip to content

xraystyle1980/scrolling-token

Repository files navigation

Scrolling Token Demo

A modern web demo showcasing a 3D token that responds to scroll interactions using Three.js and GSAP. Built with Next.js and TypeScript.

Features

  • 🎨 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

Tech Stack

  • 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

Getting Started

  1. Clone the repository:
git clone [your-repo-url]
cd scrolling-token
  1. 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
  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser.

Project Structure

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

Development

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

License

MIT

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published