I have an <img>
tag which already has the icon
class.
I need to add two extra classes to that element for [animate.css] (http://daneden.github.io/animate.css/) animations.
Those extra classes, flip
and animated
, need to be added once the user scrolls to the image.
I tried a lot of different ways but none of them worked. Here's the html:
<div class="col-md-12 ">
<div class="box">
<img src="img/world.png" class="icon"/>
<h1>WEB<br/>DESIGN</h1>
</div>
</div>
The users should scroll down around 1328px so that the animations starts.
Bottom line: How do I add flip
and animated
classes to <img>
when the user scrolls to it?