Home > Article > Web Front-end > jQuery animate effect demonstration_jquery
animate(params[,duration[,easing[,callback]]])
Function used to create custom animations.
The key to this function is to specify the animation form and result style attribute object. Each property in this object represents a style property that can change (such as "height", "top", or "opacity").
Note: All specified attributes must be in camel form, such as marginLeft instead of margin-left.
The value of each attribute indicates the length of this style attribute when the animation ends. If it is a numeric value, the style property will gradient from the current value to the specified value. If a string value such as "hide", "show", or "toggle" is used, the default animation form is invoked for the property.
After running, refresh the main remote js file.