* Show all matched elements using a graceful animation and firing an
* Show all matched elements using a graceful animation and firing an
* optional callback after completion.
* optional callback after completion.
*
*
* The height, width, and opacity of each of the matched elements
* The height, width, and opacity of each of the matched elements
* are changed dynamically according to the specified speed.
* are changed dynamically according to the specified speed.
*
*
* @example $("p").show("slow");
* @example $("p").show("slow");
*
*
* @example $("p").show("slow",function(){
* @example $("p").show("slow",function(){
* alert("Animation Done.");
* alert("Animation Done.");
* });
* });
*
*
* @name show
* @name show
* @type jQuery
* @type jQuery
* @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @param Function callback (optional) A function to be executed whenever the animation completes.
* @param Function callback (optional) A function to be executed whenever the animation completes.
* Hide all matched elements using a graceful animation and firing an
/**
* optional callback after completion.
* Hide all matched elements using a graceful animation and firing an
*
* optional callback after completion.
* The height, width, and opacity of each of the matched elements
*
* are changed dynamically according to the specified speed.
* The height, width, and opacity of each of the matched elements
*
* are changed dynamically according to the specified speed.
* @example $("p").hide("slow");
*
*
* @example $("p").hide("slow");
* @example $("p").hide("slow",function(){
*
* alert("Animation Done.");
* @example $("p").hide("slow",function(){
* });
* alert("Animation Done.");
*
* });
* @name hide
*
* @type jQuery
* @name hide
* @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @type jQuery
* @param Function callback (optional) A function to be executed whenever the animation completes.
* @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @cat Effects/Animations
* @param Function callback (optional) A function to be executed whenever the animation completes.
* Reveal all matched elements by adjusting their height and firing an
* optional callback after completion.
/**
*
* Reveal all matched elements by adjusting their height and firing an
* Only the height is adjusted for this animation, causing all matched
* optional callback after completion.
* elements to be revealed in a "sliding" manner.
*
*
* Only the height is adjusted for this animation, causing all matched
* @example $("p").slideDown("slow");
* elements to be revealed in a "sliding" manner.
*
*
* @example $("p").slideDown("slow",function(){
* @example $("p").slideDown("slow");
* alert("Animation Done.");
*
* });
* @example $("p").slideDown("slow",function(){
*
* alert("Animation Done.");
* @name slideDown
* });
* @type jQuery
*
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @name slideDown
* @param Function callback (optional) A function to be executed whenever the animation completes.
* @type jQuery
* @cat Effects/Animations
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @see slideUp(String|Number,Function)
* @param Function callback (optional) A function to be executed whenever the animation completes.
* Hide all matched elements by adjusting their height and firing an
},
* optional callback after completion.
*
/**
* Only the height is adjusted for this animation, causing all matched
* Hide all matched elements by adjusting their height and firing an
* elements to be hidden in a "sliding" manner.
* optional callback after completion.
*
*
* @example $("p").slideUp("slow");
* Only the height is adjusted for this animation, causing all matched
*
* elements to be hidden in a "sliding" manner.
* @example $("p").slideUp("slow",function(){
*
* alert("Animation Done.");
* @example $("p").slideUp("slow");
* });
*
*
* @example $("p").slideUp("slow",function(){
* @name slideUp
* alert("Animation Done.");
* @type jQuery
* });
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
*
* @param Function callback (optional) A function to be executed whenever the animation completes.
* @name slideUp
* @cat Effects/Animations
* @type jQuery
* @see slideDown(String|Number,Function)
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @see slideToggle(String|Number,Function)
* @param Function callback (optional) A function to be executed whenever the animation completes.
* Only the height is adjusted for this animation, causing all matched
/**
* elements to be hidden in a "sliding" manner.
* Toggle the visibility of all matched elements by adjusting their height and firing an
*
* optional callback after completion.
* @example $("p").slideToggle("slow");
*
*
* Only the height is adjusted for this animation, causing all matched
* @example $("p").slideToggle("slow",function(){
* elements to be hidden in a "sliding" manner.
* alert("Animation Done.");
*
* });
* @example $("p").slideToggle("slow");
*
*
* @name slideToggle
* @example $("p").slideToggle("slow",function(){
* @type jQuery
* alert("Animation Done.");
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* });
* @param Function callback (optional) A function to be executed whenever the animation completes.
*
* @cat Effects/Animations
* @name slideToggle
* @see slideDown(String|Number,Function)
* @type jQuery
* @see slideUp(String|Number,Function)
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
*/
* @param Function callback (optional) A function to be executed whenever the animation completes.
* Only the opacity is adjusted for this animation, meaning that
* all of the matched elements should already have some form of height
/**
* and width associated with them.
* Fade in all matched elements by adjusting their opacity and firing an
*
* optional callback after completion.
* @example $("p").fadeIn("slow");
*
*
* Only the opacity is adjusted for this animation, meaning that
* @example $("p").fadeIn("slow",function(){
* all of the matched elements should already have some form of height
* alert("Animation Done.");
* and width associated with them.
* });
*
*
* @example $("p").fadeIn("slow");
* @name fadeIn
*
* @type jQuery
* @example $("p").fadeIn("slow",function(){
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* alert("Animation Done.");
* @param Function callback (optional) A function to be executed whenever the animation completes.
* });
* @cat Effects/Animations
*
* @see fadeOut(String|Number,Function)
* @name fadeIn
* @see fadeTo(String|Number,Number,Function)
* @type jQuery
*/
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
fadeIn:function(speed,callback){
* @param Function callback (optional) A function to be executed whenever the animation completes.
* Only the opacity is adjusted for this animation, meaning that
},
* all of the matched elements should already have some form of height
* and width associated with them.
/**
*
* Fade out all matched elements by adjusting their opacity and firing an
* @example $("p").fadeOut("slow");
* optional callback after completion.
*
*
* @example $("p").fadeOut("slow",function(){
* Only the opacity is adjusted for this animation, meaning that
* alert("Animation Done.");
* all of the matched elements should already have some form of height
* });
* and width associated with them.
*
*
* @name fadeOut
* @example $("p").fadeOut("slow");
* @type jQuery
*
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* @example $("p").fadeOut("slow",function(){
* @param Function callback (optional) A function to be executed whenever the animation completes.
* alert("Animation Done.");
* @cat Effects/Animations
* });
* @see fadeIn(String|Number,Function)
*
* @see fadeTo(String|Number,Number,Function)
* @name fadeOut
*/
* @type jQuery
fadeOut:function(speed,callback){
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
* all of the matched elements should already have some form of height
},
* and width associated with them.
*
/**
* @example $("p").fadeTo("slow", 0.5);
* Fade the opacity of all matched elements to a specified opacity and firing an
*
* optional callback after completion.
* @example $("p").fadeTo("slow", 0.5, function(){
*
* alert("Animation Done.");
* Only the opacity is adjusted for this animation, meaning that
* });
* all of the matched elements should already have some form of height
*
* and width associated with them.
* @name fadeTo
*
* @type jQuery
* @example $("p").fadeTo("slow", 0.5);
* @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
*
* @param Number opacity The opacity to fade to (a number from 0 to 1).
* @example $("p").fadeTo("slow", 0.5, function(){
* @param Function callback (optional) A function to be executed whenever the animation completes.
* alert("Animation Done.");
* @cat Effects/Animations
* });
* @see fadeIn(String|Number,Function)
*
* @see fadeOut(String|Number,Function)
* @name fadeTo
*/
* @type jQuery
fadeTo:function(speed,to,callback){
* @param String|Number speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
returnthis.animate({opacity:to},speed,callback);
* @param Number opacity The opacity to fade to (a number from 0 to 1).
},
* @param Function callback (optional) A function to be executed whenever the animation completes.
* The value associated with the key represents to what end the property
},
* will be animated. If a number is provided as the value, then the style
* property will be transitioned from its current state to that new number.
/**
* Oterwise if the string "hide", "show", or "toggle" is provided, a default
* A function for making your own, custom, animations. The key aspect of
* animation will be constructed for that property.
* this function is the object of style properties that will be animated,
*
* and to what end. Each key within the object represents a style property
* @example $("p").animate({
* that will also be animated (for example: "height", "top", or "opacity").
* height: 'toggle', opacity: 'toggle'
*
* }, "slow");
* The value associated with the key represents to what end the property
*
* will be animated. If a number is provided as the value, then the style
* @example $("p").animate({
* property will be transitioned from its current state to that new number.
* left: 50, opacity: 'show'
* Oterwise if the string "hide", "show", or "toggle" is provided, a default
* }, 500);
* animation will be constructed for that property.
*
*
* @name animate
* @example $("p").animate({
* @type jQuery
* height: 'toggle', opacity: 'toggle'
* @param Hash params A set of style attributes that you wish to animate, and to what end.
* }, "slow");
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
*
* @param Function callback (optional) A function to be executed whenever the animation completes.
* @example $("p").animate({
* @cat Effects/Animations
* left: 50, opacity: 'show'
*/
* }, 500);
animate:function(prop,speed,callback){
*
returnthis.queue(function(){
* @name animate
* @type jQuery
this.curAnim=jQuery.extend({},prop);
* @param Hash params A set of style attributes that you wish to animate, and to what end.
* @param String|Number speed (optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).
for(varpinprop){
* @param Function callback (optional) A function to be executed whenever the animation completes.