jQuery Tutorial


jQuery Example


jQuery References


jQuery fadein() Effect Reference


  All jQuery Effect References


Uses

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


Syntax

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

jQuery fadein() 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 fadein() 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