Show
Concept: Show hidden match element syntax: Show (speed,callback) Parameters:
- Speed: A string of three predetermined speeds (' slow ', ' normal ', ' fast ') or a millisecond value that represents the duration of the animation (for example, 1000 milliseconds ==1 seconds)
- Callback: Functions executed at the completion of the animation, each element executed once
Hide
Hide (Speed,callback) is similar to show usage, which means hiding the displayed elements.
The show () and Hide () methods can be used to dynamically control the display and hiding of elements.
Toggle
If the element is visible, toggle to hidden, or toggle to visible if the element is hidden.
Slidedown
Concept: To dynamically display all matching elements through a height change (increase downward), triggering a callback function after the display is complete
Usage and parameters are similar to the above
Slideup
Dynamically hides all matching elements by a height change (decrease up), optionally triggering a callback function after the hide is complete.
Usage and parameters are similar to the above
Slidetoggle
Concept: Toggles the visibility of all matching elements through a height change and optionally triggers a callback function after the switch is complete
Similar to toggle usage
FadeIn
Concept: The fading effect of all matching elements is achieved through the change of opacity, and optionally triggering a callback function after the animation is complete.
This animation only adjusts the opacity of the element, meaning that the height and width of all matching elements do not change.
FadeOut
Concept: The fade-out effect of all matching elements is achieved by changing the opacity, and optionally triggering a callback function after the animation is complete.
This animation only adjusts the opacity of the element, meaning that the height and width of all matching elements do not change.
FadeTo
Concept: Progressively adjusts the opacity of all matching elements to the specified opacity, and optionally triggers a callback function after the animation is complete.
This animation only adjusts the opacity of the element, meaning that the height and width of all matching elements do not change.
Fadetoggle
Concept: Switches the fade-in and fade -out effect of all matching elements through opacity changes, and optionally triggers a callback function after the animation is complete.
This animation only adjusts the opacity of the element, meaning that the height and width of all matching elements do not change.
The effect of fading is to use this method
Animate
Concept: A function for creating custom animations
Syntax: Animate (PARAMS,[SPEED],[FN])
Parameters:
Params: A set of style properties and their values that contain the animated and final values
Speed: A string of three predetermined speeds ("slow", "normal", or "fast") or a millisecond value that represents the duration of the animation (for example: 1000)
fn: The function that executes when the animation is complete, once for each element.
Stop
Concept: Stop all animations that are running on the specified element
Syntax: Stop ([Clearqueue],[jumptoend])
Parameters:
Clearqueue: If set to true, the queue is emptied. You can end the animation immediately.
Gotoend: Let the currently executing animation finish immediately, and reset the original style of show and hide, call the callback function, etc.
Delay
Concept: Used to do the deferred operation
Syntax: Delay (1000), after one second to do the following
The effect of jquery