2
I’m having trouble using the this
here, to identify which of the links I am passing the mouse, when I pass the mouse in one of the links it activates the two links and this is not to happen. I’m also having trouble hiding .post-prev
and .post-next
.
HTML
<a href="#" class="btn-abs prev-new hide show_post">◄</a>
<a href="#" class="btn-abs next-new hide show_post">►</a>
JS
$(document).ready(function () {
$(".post-prev, .post-next").hide();
$('.show_post').hover(function(){
$('.post-prev, .post-next').animate({width: '20%'}, 300).show();
}, function(){
//$('.post-prev, .post-next').animate({width: '0'}, 300);
});
});
Well I put visibility:Hidden; in the classes . post-prev and . post-next until it works as they should the problem is that when I shoot the mouse from above it also disappears with the arrow that activates the effect
– Pablo Campina
Put your code in JSFIDDLE.COM that can be analyzed
– Roger Barretto
follow http://jsfiddle.net/pabloworks/dZQLJ/
– Pablo Campina