FINDING YOUR DIRECTION

0%
← Scrollhaus Journal

AI Website Guides · Published · Updated · 5 min read

Apple-Style Scroll Animation Website: How It Works (2026)

The "Apple scroll animation" look is a pinned canvas that plays pre-rendered frames as you scroll, with text that fades in and out. Here is how the effect works, what it costs in performance, and how to build it.

Published by Amanjot Singh, founder of Scrollhaus. AI-assisted editorial work; product context, sources and corrections are documented in our editorial methodology.

A cinematic scroll-driven product website in the Apple style
Scrollhaus Journal · AI Website Guides

Disclosure: ScrollHaus publishes this guide. Technique descriptions come from public documentation of the libraries and browser APIs named, and the live examples are ScrollHaus websites you can scroll yourself.

What is the Apple-style scroll animation?

Product pages from large hardware makers often feel like a film that you control with the scroll wheel. The product rotates, opens or explodes into parts while text blocks appear and fade. This is not a heavy video. It is usually an image sequence drawn on a canvas, mapped to scroll position, with HTML text layered above.

The four building blocks

  1. A tall runway section. Two to four viewport heights of scroll distance give the animation time to play.
  2. A pinned canvas. position: sticky keeps the canvas in view while the runway scrolls.
  3. A frame sequence. Pre-rendered WebP or JPEG frames, loaded in stages, drawn according to scroll progress.
  4. Scroll-mapped copy. Headlines fade in and out at set progress ranges.

Why not just use video?

Video scrubbing depends on keyframes, so scrolling backward stutters. Frames are independent images, so any frame can be drawn instantly in both directions. The cost is download size, which you control with WebP, fewer frames on mobile and staged loading. The full implementation is in our image sequence canvas tutorial.

Build the effect in five steps

  1. Render or export a 5 to 8 second clip of the product moving. A clean background and locked camera give the best compression.
  2. Extract 24 fps frames with FFmpeg into WebP at about 1920 wide.
  3. Create the runway and sticky canvas.
  4. Preload coarse frames first (every 8th), then fill in.
  5. Smooth the scroll with Lenis and fade text with GSAP ScrollTrigger.

How Apple’s AirPods Pro page did it

The best-known example is Apple’s AirPods Pro page. As the user scrolls down the page, the earbuds appear to rotate and come apart. It is not a video. It is a sequence of still images drawn to a canvas element, with JavaScript choosing which file to show based on scroll position. CSS-Tricks published a well-known tutorial that showed developers how to recreate the effect, and many GitHub repository demos replicate it.

<canvas id="sequence"></canvas>
const canvas = document.querySelector('#sequence');
const context = canvas.getContext('2d');
const frameCount = 148;
const frame = i => `/frames/${String(i).padStart(4, '0')}.jpg`;
const img = new Image();
img.src = frame(1); // show the first frame before any scroll
img.onload = () => context.drawImage(img, 0, 0);
window.addEventListener('scroll', () => {
const max = document.documentElement.scrollHeight - window.innerHeight;
const index = Math.min(frameCount, Math.ceil((window.scrollY / max) * frameCount) || 1);
requestAnimationFrame(() => { img.src = frame(index); });
});

The JS does three things: it works out progress from the window height, converts that to a frame number, and uses a request for the next animation frame to update the canvas so the browser does not repaint more often than it can draw. Preload each asset so the animation plays smoothly.

CSS and other ways to animate based on scroll

The canvas tag sits inside a tall wrapper div with position: sticky, so it stays in place while the page moves. Text layers use an opacity and translate transition with a gentle ease, over a matching background color. Basics first: specify the canvas size in CSS and in its attributes, and test on iOS, where memory limits are tighter.

You do not have to write it by hand. Webflow has an animation on scroll interaction, Lottie can scrub vector animation, React projects often import GSAP ScrollTrigger, and WebGL handles real 3D. Using a video and setting its time on scroll is simpler, but seeking is less reliable across browsers than an image sequence.

Performance and accessibility rules

The Core Web Vitals checklist for animated websites covers each of these in detail.

See it live

Scroll these ScrollHaus builds to feel the effect: CORNERSTONE, VORTA, MOIRÉ and IVOIRE. They use the same frame-sequence approach, each with a different subject. Browse all scroll animation websites or learn how to make an animated website with AI.

Frequently asked questions

How do Apple-style scroll animations work?

A tall runway section pins a canvas, and scroll progress decides which pre-rendered image frame is drawn, while HTML text fades in and out over it.

Are Apple scroll animations video or images?

Typically image sequences drawn on a canvas, because frames can be shown instantly in both scroll directions without video seek lag.

How many frames does a scroll animation need?

Usually 100 to 200 frames for a 5 to 8 second hero at 24 fps, with fewer, smaller frames for mobile.

Does a scroll animation hurt SEO or page speed?

Not if you show a poster frame immediately, keep text as HTML, reserve canvas height to avoid layout shift and load frames in stages.

Can I build this without coding?

AI builders and templates can generate the structure, but the frame sequence must be rendered from your own footage or 3D scene. Starting from a working template saves the most time.

Browse Scrollhaus website designs and build resources →

Need help with a template, account, or project? Email admin@scrollhaus.ai.