Loading Please Wait...

Logo Lynxsia IT Solutions

jQuery Effects Slide

JQ Effects Slide

The jQuery slide methods slide elements up and down.

The slideDown() Method

The slideDown() method is used to slide down an element.

Syntax
					 
        
          $(selector).slideDown(speed, callback);
        
      

The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast", or milliseconds.

The optional callback parameter is a function to be executed after the sliding completes.

					 
        
          $("button").click(function(){
            $("#div").slideDown();
          });
        
      
The slideUp() Method

The slideUp() method is used to slide up an element.

Syntax
					 
        
          $(selector).slideUp(speed, callback);
        
      

The optional speed parameter specifies the duration of the effect. It can take the following values: "slow", "fast", or milliseconds.

The optional callback parameter is a function to be executed after the sliding completes.

					 
        
          $("button").click(function(){
            $("#div").slideUp();
          });
        
      
The slideToggle() Method

The slideToggle() method toggles between the slideDown() and slideUp() methods.

Syntax
					 
        
          $(selector).slideToggle(speed, callback);
        
      

The optional speed parameter can take the following values: "slow", "fast", milliseconds.

The optional callback parameter is a function to be executed after the sliding completes.

					 
        
          $("button").click(function(){
            $("#div").slideToggle();
          });
        
      

How you feel about this blog:

Share this blog on:

Report Us

If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com

Contact Us
Ads
Logo
Lynxsia IT Solutions

We are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..

Kotwali Road, Chhiptehri, Banda, 210001, UP, India

Copyright © 2022, Lynxsia IT Solutions, All rights reserved