Good afternoon, there is such a structure:
<div class="gallery-port"> <figure> <img src="/img/portfolio/6x3.jpg" alt=""> <a href="#" class="calc-for-me btn-callback open-callback">Ссылка</a> </figure> </div> <div class="gallery-port"> <figure> <img src="/img/portfolio/6x3.jpg" alt=""> <a href="#" class="calc-for-me btn-callback open-callback">Ссылка</a> </figure> </div> <div class="gallery-port"> <figure> <img src="/img/portfolio/6x3.jpg" alt=""> <a href="#" class="calc-for-me btn-callback open-callback">Ссылка</a> </figure> </div>
It is necessary that when you hover over the .gallery-port block, a.calc-for-me appears.
At the moment there is this:
$('.gallery-port').mouseenter(function () { $('.calc-for-me').fadeIn(); }); $('.gallery-port').mouseleave(function () { $('.calc-for-me').fadeOut(); });
But then, when you hover on one element, a.calc-for-me appears in all the others, and this, in principle, is logical. How to make calc-for-me appear exactly in the block that you direct? Thank!