imgGlitch
Create an image glitch effect like this one: http://codepen.io/Maximilianos/pen/mergqg?editors=001
Based on a pen by @lucasbebber.
This module is the code from Luca's pen without the jQuery dependency and wrapped in a reusable ES2015 module.
Install
Via npm
npm i img-glitch
Usage
The Html: A base 64 encoded image:
The JS:
; const glitch = ; // start the glitching!glitchstart; // stop/pause the glitchingglitch; // clear the glitching effects, // it's like it never happened!glitchclear;
License
MIT