Change the last line in your mouseover
code to fade out all of the elements, but then follow it with a fadeTo
of the element that is hovered over. Your code was getting confused about what element was being hovered over, so it is better to explicitly use $(this)
:
$('.category-container').bind('mouseover',function() {
$(this).addClass('hover').stop(true,true).animate({
fontSize: '26px',
}, 200);
// This line changed
$('.category-container').stop(true,true).fadeTo('fast',0.2);
// This line added
$(this).fadeTo('fast',1);
});
$('.category-container').bind('mouseleave', function() {
$('.category-container').removeClass('hover').stop(true,true).animate({
fontSize: '12px',
}, 200).fadeTo('fast',1);
});