I know you can fade out a So I\'ve g
A real fade out animation would require us to use the alpha channel.
AFAIK jQuery UI's use of I used a black border so you can notice the effect, but you can change it to whatever color you want, for example Working example: http://jsfiddle.net/victmo/2Xazx/ Cheers! BTW, no plugins needed for this approach...
rgba() is very buggy, so we can use the step property to change the opacity of the border like this:setTimeout(function(){
var div = $('.confession');
$({alpha:1}).animate({alpha:0}, {
duration: 1000,
step: function(){
div.css('border-color','rgba(0,0,0,'+this.alpha+')');
}
});
}, 5000);
rgba(221,221,221,'+this.alpha+')'); for #DDD