jQuery Tutorial


jQuery Example


jQuery References


jQuery fadeOut() Effect Reference


  All jQuery Effect References


Uses

jQuery fadeOut() effect allow to set Opacity for selected element from visible to hidden.


Syntax

$(selector).fadeOut(speed,[callback]) 

jQuery fadeOut() effect supported following parameters.

ParameterDescription
speed speed is Optional parameter. speed define the fading effect speed.
Specific Speed Values:
  • "slow"
  • "normal"
  • "fast"
  • "1000" (milliseconds)
callback Callback is optional parameter. It is use to represents a function to be executed whenever effect is completed.

jQuery fadeOut() effect Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("#btn1").click(function(){
    $("div").fadeOut(5000);
  });
   $("#btn2").click(function(){
    $("div").fadeIn(5000);
  }); 
});
<script>
Online Try This Code Your Self....   »

  All jQuery Effect References