I´m doing an animation hover using this function:
function lookbookhover(){
var lookbook = $('.lookbook_info')
lookbook.bind({
'mouseenter' : function(){
lookbook_animate(200)
},
'mouseleave' : function(){
lookbook_animate(30)
}
})
}
function lookbook_animate(h){
$('.lookbook_info').animate({
height: h
}, 300 );
}
The problem I have is that when the user hovers one item (.lookbook_info) it animates all the others .lookbook_info that are on the page, how can I point to just animate just one element?
I know it´s using $(this) but I haven´t get the result.
Just pass the element to the function:
DEMONSTRATION