Code:
$('#divSample3').fadeOut(1000); // will fade out the div "divSample"
$('#divSample3').fadeIn(1000); // will fade in the div "divSample"
$("#divSample3").animate( // will animate the div "divSample"
// to height 200px, width 400px and opacity of .5, for 1000 milisecond
{height:200
, width:400
, opacity: .5}
, 1000
, function()
{
alert("Animation complete!"); // call method on completion of animation
});