0
I’m trying to make this effect with that when passing the mouse over the image, it disappears and displays the text, when taking the mouse, add the text and display the image.
I tried as follows, when I move the mouse over the image is in "Infinite Loop" disappearing with the image and displaying the text (vice versa).
$(".agendamento li img").hover(function() {
$(this).next("p").show();
$(this).hide();
}, function() {
$(this).next("p").hide();
$(this).show();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="col-md-12 agendamento">
<ul>
<li class="col-md-12">
<div class="col-md-6 borda-azul">
<img src="http://placehold.it/350x150" alt="Terapia" class="img-responsive img-circle">
<p>Proin eget tortor risus. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
</div>
</li>
</ul>
</div>
Your code doesn’t seem to be complete.
.agendamento
would be the elementul
? In CSS you start the text withdisplay: none
?– Woss
I edited the question, scheduling is the parent div, the ul is classless. Yes, the text is started with display None!
– viniciussvl