jquery fade out

JavaScript
$(document).ready(function(){
  $("button").click(function(){
    $("p").fadeOut(2500);
  });
});$(".example").fadeIn(500);$(document).ready(function(){
  $("button").click(function(){
    $("p").fadeOut();
  });
});$(selector).fadeOut(duration)
$(selector).fadeIn(duration)
Source

Also in JavaScript: