I have multiple divs like so:
<div class="project">
<div class="image">
<a href="#"><img width="789" height="504" src="//localhost:3000/wp-content/uploads/2016/02/featured4.png"></a>
</div>
<!-- /.image -->
<div class="info">
<h1>Title</h1>
<div class="paw"><span></span><a href="//localhost:3000/2016/02/22/title/">view project</a></div>
</div>
<!-- /.info -->
<div class="clearfix"></div>
</div>
I want, when hovering over the <a>
inside div.image
to also trigger hover effect on the <a>
inside div.paw
(and vice versa), of course all inside the same div.project
div
I tried like so but I get i do not see the hover effect on div.paw a
$('body').on('mouseenter', 'div.image a', function() {
$(this).closest('div.paw a').trigger('mouseenter');
});
CSS:
div.image img{
transition: all .3s ease;
}
div.image a:hover img {
transform: scale(1.1);
}
div.info div.paw span {
transition: all .3s ease;
}
div.info div.paw A {
transition: all .3s ease;
}
div.info div.paw:hover span {
width: 33px;
}
div.info div.paw:hover a {
margin-left: 20px;
}