Samsung Galaxy S24 - Cinematic Scrollytelling website setup (Tutorial)

DevBlog

Feb 26, 2026 ยท 2 min read ยท 32 views

Samsung Galaxy S24 - Cinematic Scrollytelling website setup (Tutorial)

A high-performance, Apple-level product landing page clone for the Samsung Galaxy S24. This project demonstrates advanced scroll-linked animations, hardware-accelerated image sequences, and responsive design techniques using modern web technologies.

codebase:https://www.devblog.blog/store/samsung-galaxy-s24-cinematic-scrollytelling-website-codebase-mm2suabj

  • Cinematic Scrollytelling: A 240-frame 3D image sequence that explodes and reassembles the device as you scroll.

  • Hardware Acceleration: Uses HTML5 Canvas for performant, jank-free image playback at 60fps+.

  • Momentum Scrolling: Integrated Lenis for smooth, "buttery" inertia scrolling that feels premium.

  • Responsive Assets: Automatically switches between high-res desktop sequences and optimized mobile sequences (<768px) for faster load times.

  • Sticky Navbar: Apple-style translucent navigation that blurs on scroll.

  • Overlay Content: Text sections (Design, Camera, Performance) that fade and slide in sync with the 3D model's movement.

๐Ÿ›  Tech Stack

๐Ÿ“ฆ Installation

  1. Clone the repository:

    git clone https://github.com/modamaan/3d_animation_website.git
    cd samsung-galaxy-s24
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev
  4. Open your browser: Navigate to http://localhost:3000

๐Ÿ“‚ Project Structure

โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ page.tsx             # Main orchestrator for scroll & layout
โ”‚   โ”œโ”€โ”€ globals.css          # Global styles & Tailwind imports
โ”‚   โ””โ”€โ”€ layout.tsx           # Root layout with font configuration
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ ImageSequence.tsx    # Core Canvas component with responsive logic
โ”‚   โ”œโ”€โ”€ Navbar.tsx           # Sticky navigation bar
โ”‚   โ”œโ”€โ”€ OverlayContent.tsx   # Text sections that scroll over the canvas
โ”‚   โ”œโ”€โ”€ ScrollManager.tsx    # Lenis smooth scroll provider
โ”‚   โ””โ”€โ”€ StickySection.tsx    # Helper for sticky positioning
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ images/
โ”‚       โ”œโ”€โ”€ sequence/        # Desktop 3D frame sequence (240 jpgs)
โ”‚       โ””โ”€โ”€ sequence-mobile/ # Mobile 3D frame sequence (240 jpgs)

๐ŸŽจ Asset Optimization

This project uses two distinct image sequences to ensure optimal performance across devices:

  • Desktop: High-resolution frames for large displays.

  • Mobile: Optimized frames for screens under 768px width.

The ImageSequence component automatically detects the viewport size and loads the appropriate assets.