I'd like to do search animation like on twitter.com It means that when the user put the cursor over one element some other will be animated also.
I try to do it in that way:
$(".classinput").mouseover(function(){
$(this).animate({
opacity: 1,
});
}).mouseleave(function(){
$(this).animate({
opacity: 0.5,
});
});
But it doesn't work. Moving the mouse over the element animate the single element not the whole class.
Thank you in advance!