here is my problem... Can you help me please?
$(".button").hover(function(){
$('.class').css({opacity: 1.0, visibility: "hidden"}).animate({opacity: 0}, 1200);
},function(){
$('.class').css({opacity: 0.0, visibility: "visible"}).animate({opacity: 1}, 1200);
});
It only animates when it is appearing. :-(
Try this way:
However, this is not the best option to
fadeIn
andfadeOut
. You can use instead the methods with those names that jQuery provide, or better, use CSS transitions in case you can.