I've tried to implement for all the <div> effect when the page loads.
jQuery('.postCenter').addClass("hiddenClass").viewportChecker({
classToAdd: 'visibleClass animated bounce',
offset: 200
});
Now this is working only when the page is loading. I need the same effect when I hover the mouse through that <div>
I tried this but didn't work.
$('.nom-img').hover(function(){
$('.tag-nom').removeClass('animated');
$('.tag-nom').removeClass('bounce');
$('.tag-nom').addClass('animated');
$('.tag-nom').addClass('bounce');
});
My Markup is this:
<div class="col-md-4 col-sm-4 col-xs-12 postLeft">
<h2>Topeka, Kansas</h2>
<div class="nom-img">
<a href="topeka.html"><img src="img/xxxxxx"></a>
</div>
<div class="tag-nom postCenter"> <a href="#"><img src="XXX"></a>
<h4><a href="#">vsdvsdvsdvsdv</a></h4>
</div>
</div>
I want tag-nom to be animated when I hover the div nom-img
I have 6 of such columns. So only the corresponding tag-nomshould be animated on hover. How can I do this?