jQuery fadeIn Fast


jQuery fadeIn fast adds fast transition to hidden elements i.e; fadein with fast speed. $(selector).fadeIn(“fast”); is used to add fadeIn fast effect where it accepts parameter “fast” to add the transition speed. Below example explains this effect with online demo and editor.


Syntax of jQuery fadeIn fast

Here is syntax for fadeIn fast example in jQuery –

$(selector).fadeIn("fast");

selector: Is selector element.

“fast” : Is input parameter to add fast transition in selected element.

jQuery fadeIn fast Example


<script type="text/javascript">
         $(document).ready(function(){
          $("#fadeInbutton").click(function(){
           $("#demoDiv").fadeIn("fast");
          });
          });
</script>    

Try it »

The above code will produce following result-

Note : This is image of the output. To run this demo click on the above “Try it” button.

jQuery fadeIn fast Example


Advertisements

Add Comment

📖 Read More