How to make a mouse-move glitch collage using HTML canvas and Javascript

SuperHi on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI32 min

About this video

Shows how to build a website with an HTML canvas slideshow that reveals images on click and moves them with tweening, producing a glitch-style collage that redraws as the mouse moves. It is aimed at people who already write some HTML and JavaScript and want to make generative visual effects.

What you’ll learn

  • Build an HTML canvas slideshow that reveals each image on click
  • Animate image movement with tweening in JavaScript
  • Redraw a glitch-style collage in response to mouse movement