So, I have in all 4 divs that I want to be changed when the mouse passes and when the mouse leaves it. The effect I wanted to do worked out, but I wanted to lower the code so that it would be easier to maintain, so I'm here. I'm going to pass the javascript code and the two blocks I'm trying to do this for. Also another question, this effect does not leave the application too heavy for the user, or does it? Thanks
JS
$('#bloco1').mouseenter(function (){
$('.fraseBloco1').stop().fadeOut(0);
$('.imgBloco1').stop().fadeOut(0);
$('.conteudoBloco1').stop().fadeIn(1000);
});
$('#bloco1').mouseleave(function (){
$('.conteudoBloco1').stop().fadeOut(0);
$('.fraseBloco1').stop().fadeIn(1000);
$('.imgBloco1').stop().fadeIn(1000);
});
HTML
<div class="bloco1" id="bloco1">
<img class="imgBloco1" src="" />IMAGEM DO BLOCO
<p class="fraseBloco1">AQUI É TIPO UM TITULO</p>
<span class="conteudoBloco1" style="display: none;">DESCRICAO QUE APARECE QUANDO MOUSE ENTRA</span>
</div>