Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacBook 3D Landing Page

Short description: A sleek 3D MacBook Pro landing page with interactive model controls, scroll animations, and responsive product storytelling.

An Apple-inspired MacBook Pro product page built with React, Vite, Three.js, GSAP, and Tailwind CSS. The site combines video-led hero content, scroll-triggered animation, and an interactive 3D product viewer for switching MacBook size and color options.

MacBook 3D Landing Page

Features

  • Interactive 3D MacBook viewer powered by React Three Fiber and Drei
  • 14-inch and 16-inch model scale switching with shared GLB assets
  • Space gray and dark color controls using Zustand state
  • GSAP and ScrollTrigger animations for pinned sections, timelines, and reveals
  • Deferred below-the-fold sections with lazy-loaded React components
  • Optimized Vite build chunks for app, GSAP, and Three.js dependencies
  • Responsive layout with custom fonts, videos, product imagery, and feature highlights

Tech Stack

Getting Started

Prerequisites

  • Node.js 20 or newer
  • npm

Installation

npm install

Development

npm run dev

Open the local URL printed by Vite, usually http://localhost:5173.

Production Build

npm run build

Preview the production build locally:

npm run preview

Linting

npm run lint

Project Structure

src/
  components/          React sections and UI components
  components/models/   Generated model components
  components/three/    Three.js scene helpers
  constants/           Shared navigation, features, and asset data
  hooks/               Reusable React hooks
  lib/                 Third-party library setup
  store/               Zustand store
public/
  fonts/               Custom font files
  models/              GLB model assets
  videos/              Hero and feature videos

Notes

Large media and 3D assets are served from public/. If you replace the MacBook model or videos, keep the paths in src/constants and the model components in sync.

About

3D MacBook Pro landing page with interactive model controls, scroll animations, and responsive product storytelling. An Apple-inspired MacBook Pro product page built with React, Vite, Three.js, GSAP, and Tailwind CSS.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages