
# Distortion Glitch Effect & Image Slider  | Hover effect V2

I made a few changes to apply the Script published by Robin Dela's project.


[**Original Repo By Robin Dela:**](https://tympanus.net/Development/DistortionHoverEffect/)

## Example
<p align="center">
    <img alt="example 1" src="gifs/1.gif" width="256">
   </p>
 
## Live View

[**Live View:**](https://sawacrow.github.io/Distortion-Glitch-Effect-IMGSlider/example/index.html)


What's News?

1) Adapted from Gsap 2.0 to 3.0. (Tweenmax removed and Gsap.to syntax used)
2) Ability to add images as Array.


## Guide:
demo: example/index.html

1) If you want change the effect, you can change the data-displacement img attibute.
"data-displacement="img/displacement/4.png"  for example "5.png"

2) You can change the images on data- imgArr attribute.


Thanks to Ramazan ' @rmznatly ' Atalay!

IMGS from pexels:
pexels-sulav-loktam-5184645,
pexels-selcuk-teke-3684396,
pexels-roberto-nickson-2417842,
pexels-meruyert-gonullu-6152395,
pexels-fatih-al-haq-5246076,
pexels-burak-the-weekender-57553,
pexels-aykut-kılıç-7386650,
pexels-arefin-shamsul-879478
pexels-alberto-capparelli-4279431


```html"data-imgArr='["./portf-1.jpg","./portf-2.jpg","./portf-3.jpg","./portf-4.jpg","./portf-5.jpg","./portf-6.jpg","./portf-7.jpg","./portf-8.jpg"]"```


And you must change the 
```html<img src=""> ``` 
attributes.




