Skip to content

Apple-inspired 3D landing page with scroll-driven MacBook hinge animation using React Three Fiber and Three.js.

Notifications You must be signed in to change notification settings

Ri1tik/macbook-Landing-Page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

MacBook 3D Landing Page

Image

An Apple-inspired 3D landing page built with React and React Three Fiber, featuring a scroll-driven MacBook screen hinge animation and dynamic material customization.

Features

  • Scroll-based MacBook lid animation
  • Direct GLTF mesh manipulation
  • Runtime material & texture updates
  • HDR environment lighting
  • Preserved model orientation (manual tuning)

Tech Stack

React β€’ Three.js β€’ @react-three/fiber β€’ @react-three/drei β€’ WebGL

How it Works

  • The GLTF model is traversed to access individual meshes
  • The screen hinge is animated based on scroll offset
  • Materials are modified at runtime without re-exporting the model
  • Imperative Three.js mutations are used for accurate frame-based animation

About

Apple-inspired 3D landing page with scroll-driven MacBook hinge animation using React Three Fiber and Three.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published