The effect of jquery

Source: Internet
Author: User

Show

Concept: Show hidden match element syntax: Show (speed,callback) Parameters:

    1. 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)
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.