DataVonix

scrollreel

Our open-source React library for scroll-driven video, the effect Apple uses on its product pages.

Industry
Developer tools
Category
Web Development
Core stack
React · Open Source
  • What it is

    An open-source React library

  • Who it's for

    Front-end developers

  • What it does

    Adds smooth, Apple-style scroll-scrubbed video to any page

the problem we were asked to solve

Scroll-scrubbed video looks simple: set the video's time from the scroll position. In production it stutters. Browsers can only seek cleanly to keyframes, seeks are asynchronous and get dropped, and iOS Safari often repaints only at keyframes.

  • A simple React APIOne component: point it at a video and set how far the scroll runs.
  • Frames engineA pre-extracted image sequence painted to canvas, smooth in every browser.
  • Video engineA lighter fallback that uses carefully coalesced seeks.
  • Responsive frame setsEach screen loads only the frames it needs.
  • Smoothing and segmentsMotion is eased, and a video can be split into scroll segments.
  • A CLIPrepares media that the engines can actually scrub.

how it works, step by step

Install

npm install scrollreel

Smooth on

Every browser

Engines

Frames + video

  1. 01

    Install

    npm install scrollreel.

  2. 02

    Prepare

    The CLI turns a video into media the engines can scrub.

  3. 03

    Drop in

    Add one ScrollVideo component to the page.

  4. 04

    Scroll

    Frames advance smoothly with the scroll, in every browser.

see it in action

scrollreel: the main screen
The main screen
scrollreel: on a phone
On a phone
scrollreel: in the browser
In the browser

how it's built

Written in TypeScript for React, painted to canvas, and published on npm as scrollreel, with a Node.js CLI for preparing media.

Want a Similar Project?

Tell us about your idea and we'll build something you're proud of.

let us make the web talk about your project

Send over the problem, the deadline, or the half-finished system. We come back with an honest scope, an architecture direction, and a number.