Category Archives: Jquery Blog

jQuery chaining animations


jQuery chaining animations is explained with example and demo.


jQuery chaining animations example and code

In the example we going to add chaining animations in the divs

First Div
Second Div
Third Div

jQuery selector chaining example


    

Try it »

jQuery selector chaining example


$(“selector1,selector2,selector3, selector4….”).method() is used for jQuery selector chaining.


jQuery selector chaining example and code

jQuery selector chaining example


    

Try it »

jQuery animate background color milliseconds


jQuery animate({background:’yellow’,1000},) will add background color Milliseconds animation effect.


jQuery animate background color milliseconds Example And Code

jQuery animate background color milliseconds Example with syntax


    

Try it »

jQuery animate background color fast


jQuery animate({background:’yellow’},”fast”) will add background color fast animation effect.


jQuery animate background color fast Example And Code

jQuery animate background color fast Example


    

Try it »

jQuery animate background color


jQuery animate({background:’yellow’}) will add background color animation effect.


jQuery animate background color Example And Code

jQuery animate background color Example


    

Try it »

jQuery animate background color slow


jQuery animate background color slow : jQuery animate({background:’yellow’},”slow”) will add background color slow animation effect. If you want to animate background color slowly use the $(selector).animate(style,speed) method. This method accepts two parameter one style and second speed.


Syntax : jQuery animate background color

Here is simple example of animate background color slowly using jQuery .animate method-

jQuery animate background color slow Example


    

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 animate background color slow Example

jQuery SlideToggle Milliseconds


jQuery slideToggle milliseconds – If you want to add the slide toggle effect milliseconds means you want to add the slide finish with the milliseconds provided. Below is syntax and example with online demo and editor.


Syntax of jQuery SlideToggle Milliseconds

Here is syntax for slide toggle milliseconds effect

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

Speed : Speed in milliseconds. Add millisecond you want.

Callback : Callback function is optional. You can add function to be called when it completes the sliding effect.

Example And Demo with full code is given below.

jQuery SlideToggle milliseconds Example


    

Try it »

The above code will produce following result-
Note : Its screenshot of the output. To run this demo click on the above Try it button.
jQuery SlideToggle Milliseconds

jQuery SlideToggle Slow


jQuery SlideToggle slow Creates slow slide toogle effects in the elements.


Syntax : jQuery SlideToggle Slow

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

jQuery SlideToggle Slow Example


    

Try it »

jQuery Slide Toggle Fast


jQuery Slide Toggle fast Creates Fast slide toogle effects in the elements.


Syntax of jQuery Slide Toggle Fast

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

jQuery Slide Toggle Fast Example


    

Try it »