- fadeIn
- fadeOut
- fadeToggle
- fadeTo
fadeIn
jQuery fadeIn method is used to show the html elements with fade effect.Syntax of fadeIn
$(selector).fadeIn(speed,callback_function);
Example
$("#divid").fadeIn("slow");
fadeOut
jQuery fadeOut method is used to hide the html elements with fade effect.Syntax of fadeOut
$(selector).fadeOut(speed,callback_function);
Example
$("#divid").fadeOut("slow");
fadeToggle
jQuery fadeToggle is used to hide or show a dive with fade effect. If the selector is hidden it will show the element with effect, or if it is show it will hide the element with effect.syntax of fadeToggle
$(selector).fadeToggle(speed,callback_function);
Example
$("#divid").fadeToggle("slow");
fadeTo
jQuery fadeTo method is used to fade a html element up to given opacity value.Syntax of fadeTo
$(selector).fadeTo(speed,opacity,callback_function);
Example
$("#divid").fadeTo("slow",0.8);
Example Program:- (Editor)
Editor is Loading...
Advertisement
0 comments:
Post a Comment