百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

gsap_macbook_landing

> 前端框架
开源

由React,Tree.js,GSAP和TailwindCSS所建的苹果风格网站. 以现实的照明,卷轴的动画制作出浸入式3D产品场景,

200 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

由React,Tree.js,GSAP和TailwindCSS所建的苹果风格网站. 以现实的照明,卷轴的动画制作出浸入式3D产品场景,

Apple Mabook Website

Table of Contents

  1. ✨ Introduction
  2. ⚙️ Tech Stack
  3. Features
  4. Quick Start
  5. Assets
  6. More

Tutorial

This repository contains the code corresponding to an in-depth tutorial available on our YouTube channel, JavaScript Mastery.

If you prefer visual learning, this is the perfect resource for you. Follow our tutorial to learn how to build projects like these step-by-step in a beginner-friendly manner!

✨ Introduction

Apple-style 3D website built with React, Three.js, GSAP, and TailwindCSS! Showcase products in immersive 3D scenes, scroll-animated models, and pinned sections. Featuring responsive design, smooth timeline animations, and visually striking image transitions—perfect for developers creating interactive, modern web experiences.

If you're getting started and need assistance or face any bugs, join our active Discord community with over 50k+ members. It's a place where people help each other out.

⚙️ Tech Stack

  • CodeRabbit is an AI-powered code review tool that integrates with IDEs like VS Code and Git platforms such as GitHub and GitLab. It provides real-time, context-aware feedback on pull requests, including line-by-line analysis, security vulnerability detection, and adherence to coding standards. CodeRabbit learns from your team's preferences, adapting its reviews over time to enhance code quality and developer productivity.

  • GSAP is a powerful JavaScript animation library used in this project to create dynamic, scroll-driven visuals. Features include SplitText animations for bold text reveals, ScrollTrigger for timeline control, parallax scrolling, pinned sections, scroll-synced video playback, seamless multi-section timelines, image masking effects, and a fully custom animated carousel.

  • Hostinger is a web hosting platform used in this project to deploy and manage the live website. Features include fast and reliable hosting, user-friendly control panel, one-click app installations, domain management, SSL certification, scalable server resources, and strong uptime guarantees to ensure smooth production deployment.

  • React is a declarative JavaScript library for building interactive UIs. It provides the component structure for modular development, allowing smooth integration of GSAP animations, reusable logic for scroll behavior, and support for responsive layout and state-driven UI features like carousels and video sections.

  • Tailwind CSS is a utility-first CSS framework that allows developers to design custom user interfaces by applying low-level utility classes directly in HTML, streamlining the design process.

  • Three.js is a powerful JavaScript 3D library used in this project to render interactive 3D graphics in the browser. Features include WebGL-based rendering, support for cameras, lights, and materials, 3D model importing, geometry and texture manipulation, scene graph management, animation capabilities, raycasting for interactivity, and integration with physics and post-processing effects for immersive experiences.

  • Vite is a lightning-fast build tool and development server that powers this project’s workflow. It enables instant hot module replacement, fast startup, and optimized production builds—ideal for an animation-heavy React site with smooth, real-time development feedback and minimal config.

  • Zustand is a lightweight and flexible state management library for React. In this project, it’s used to manage global state efficiently, enabling reactive updates with minimal boilerplate. Features include simple store creation, easy state slicing, middleware support for logging and persistence, seamless integration with React components, and performant state updates without unnecessary re-renders.

Features

3D Product Scene with Realistic Lighting System: Showcase products in lifelike 3D environments for maximum visual impact.

Animate 3D Model on Scroll: Create immersive interactions by animating 3D models based on user scroll position.

ScrollTrigger Effects: Power scroll-based animations and timeline control with GSAP’s ScrollTrigger.

Pinned Sections: Lock sections in view while animating content for engaging scroll experiences.

Image Masking Effects: Use scroll-triggered pins and masks for visually striking image transitions.

Seamless Timeline Animations: Craft smooth animation timelines that span across multiple sections.

Responsive Design: Ensure fluid UI and adaptive GSAP animations across all screen sizes.

And many more, including code architecture and reusability.

Quick Start

Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed on your machine:

  • Git
  • Node.js
  • npm (Node Package Manager)

Cloning the Repository

bash
git clone https://github.com/adrianhajdin/gsap_macbook_landing.git
cd gsap_macbook_landing

Installation

Install the project dependencies using npm:

bash
npm install

Running the Project

bash
npm run dev

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

Assets

Assets and snippets used in the project can be found in the video kit.

More

Advance your skills with Next.js Pro Course

Enjoyed creating this project? Dive deeper into our PRO courses for a richer learning adventure. They're packed with detailed explanations, cool features, and exercises to boost your skills. Give it a go!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript3dgsapreact19tailwindcss

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架