Image Sequence Animation On Scroll – Canvas Scroll Clip

Category: Animation , Javascript | October 26, 2022
Views Total:3,172 views
Official Page:Go to website
Last Update:October 26, 2022


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,
    identifier: '',

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


v1.3.1 (10/25/2022)

  • Bugfixes

v1.3.0 (10/24/2022)

  • update

v1.2.0 (07/31/2022)

  • core: image load progress event

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