glitch glitch glitch
--------------------
A [Pen](https://codepen.io/hmongouachon/pen/LZGwWY) by [Hadrien Mongouachon](https://codepen.io/hmongouachon) on [CodePen](https://codepen.io).
[License](https://codepen.io/hmongouachon/pen/LZGwWY/license).
<h1>mgGlitch.js : a small jQuery helper for glitch</h1>
<div class="container">
<!-- this elem will be glitch -->
<div class="glitch-img" style="background-image: url('http://hmongouachon.com/assets/img/demos/mosh1.jpg')"></div>
</div>
<p>Find this project on <a href="https://github.com/hmongouachon/mgGlitch" title="Github">Github</a></p>
// https://github.com/hmongouachon/mgGlitch
$( function() {
$( ".glitch-img" ).mgGlitch({
// set 'true' to stop the plugin
destroy : false,
// set 'false' to stop glitching
glitch: true,
// set 'false' to stop scaling
scale: true,
// set 'false' to stop glitch blending
blend : true,
// select blend mode type
blendModeType : 'hue',
// set min time for glitch 1 elem
glitch1TimeMin : 200,
// set max time for glitch 1 elem
glitch1TimeMax : 400,
// set min time for glitch 2 elem
glitch2TimeMin : 10,
// set max time for glitch 2 elem
glitch2TimeMax : 100,
});
});