Skip to content

About

A high-performance clone of the Apple MacBook showcase page, combining interactive WebGL graphics with seamless scroll-driven animation timelines.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Apple Website Clone

Beautiful, 3D interactive website built with React, TypeScript, Tailwind, GSAP, and THREE.js.

License: MIT Live Demo

Apple Website Clone Preview

A high-performance clone of the Apple MacBook showcase page, combining interactive WebGL graphics with seamless scroll-driven animation timelines. Built to emulate Apple's industrial design language with 60 FPS graphics performance.


⚡ Highlights & Key Features

  • Interactive 3D Stage: Real-time inspection and customization of Apple MacBook hardware with dynamic lighting, material roughness, and camera controls.
  • Scroll-Driven Storytelling: GSAP ScrollTrigger orchestrates hardware component explodes, screen reveals, and section transitions tied directly to user scroll position.
  • Dynamic Asset Swapping: Responsive loading of high-detail 14-inch and 16-inch GLTF models (.glb) based on device capabilities and viewport breakpoints.
  • Apple Typography & Polish: Self-hosted San Francisco font weights (Ultralight through Black) and Cupertino dark-mode aesthetics using Tailwind CSS.

🏗️ Technical Architecture

graph TD
    User[User Scroll / Input] --> GSAP[GSAP ScrollTrigger Timeline]
    GSAP --> Camera[Three.js Camera Rig / FOV]
    GSAP --> HTML[DOM Transforms / Tailwind Overlays]
    ThreeScene[Three.js Canvas] --> GLTFLoader[GLTF/GLB Pipeline]
    GLTFLoader --> Model[MacBook 14 / 16 Mesh & Materials]
    ThreeScene --> RenderLoop[Optimized RAF Render Loop]
Loading

Tech Stack

  • React & TypeScript: Provides declarative component management, strict typing, and clear lifecycle hooks for external WebGL canvas contexts.
  • Three.js: 3D rendering pipeline that enables complex materials rendering without high abstraction overhead.
  • GSAP (GreenSock): Chosen for buttery-smooth timeline synchronization and rendering accuracy.
  • Tailwind CSS: Rapid utility styling for typography scales and responsive break-points.

🚀 Getting Started

Prerequisites

  • Node.js (version 18+ recommended)
  • npm or pnpm

1. Installation

git clone https://github.com/your-username/apple-website-clone.git
cd apple-website-clone
npm install

2. Development Server

npm run dev

Open http://localhost:5173 in your browser to view the application.

3. Production Build

npm run build
npm run preview

About

A high-performance clone of the Apple MacBook showcase page, combining interactive WebGL graphics with seamless scroll-driven animation timelines.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages