I'm trying to add hover effect to icons when someone hover over hyperlink in same div but with current code all icons in div of that name are getting hovered.
For eg. when someone hovers over hyperlink of first div it should only add hover effect to fa-shield icon. Current HTML -
<div class="features">
<i aria-hidden="true" class="fa fa-shield"></i>
<h2>Lorem</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<a class="no-border" href="#0">Read More →</a>
</div>
<div class="features">
<i aria-hidden="true" class="fa fa-heart"></i>
<h2>Lorem</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
<a class="no-border" href="#0">Read More →</a>
</div>
Current Jquery -
$(".features a.no-border").mouseover(function() {
$(".features i").css({
background: '#21c2f8',
transition: '.5s'
});
});
$(".features a.no-border").mouseleave(function() {
$(".features i").css({
background: '#1a1c28',
transition: '.5s'
});
});