jQuery fadeToggle slow


jQuery fadeOut slow : This method adds slow transition to (fadeToggle) the elements. $(selector).fadeToggle(“slow”) It accepts the input parameter as “slow” to add the slow transition. We are going to explain the fadeToggle slow functionality with online demo and editor tool.


Syntax of jQuery fadeToggle slow

Here is syntax of fadeToggle slow in jQuery –

$(selector).fadeToggle("slow");

selector: Is selector element.

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

jQuery fadeToggle slow Example


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

Try it »

The above code will produce following result-

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

jQuery fadeToggle slow Example Syntax with Live Editor


Advertisements

Add Comment

📖 Read More