Image Sequence Animation On Scroll – Canvas Scroll Clip

Category: Animation , Javascript | September 11, 2021
Views Total:1,068 views
Official Page:Go to website
Last Update:September 11, 2021


Image Sequence Animation On Scroll – Canvas Scroll Clip


A scroll-triggered image sequence animation (also called frame animation) inspired by Apple Airpods website.

Implemented in JavaScript and Canvas.

How to use it:

1. Install and import the Canvas Scroll Clip.

# Yarn
$ yarn add canvas-scroll-clip
$ npm i canvas-scroll-clip --save

import CanvasScrollClip from “canvas-scroll-clip”;

2. Initialize the CanvasScrollClip on the target container element, specify the path to the first image, determine the total number of animation frames, and set the height of the scroll area as follows:

new CanvasScrollClip(document.querySelector('.example'), {
    framePath: "",
    frameCount: 140,
    scrollArea: 2000

3. Event handlers.'viewport.scroll', function(scrollTop){
});'viewport.resize', function(){
  // on resize
});'images.loaded', function() {
  // on image loaded


v1.1.0 (09/11/2021)

  • Update

v1.0.4 (09/08/2021)

  • Bug Fixes

v1.0.3 (09/07/2021)

  • Bug Fixes
  • Performance Improvements

You Might Be Interested In:

Leave a Reply