Jquery animation and jquery Animation

Source: Internet
Author: User

Jquery animation and jquery Animation
JQuery Animation

1. Zoom effect in the upper left corner

Hide ([speed, [fn])

Overview: Hide the displayed Elements

Parameter: speed: A string ("slow", "normal", or "fast") with one of the three predefined speeds, or a millisecond value indicating the animation duration (for example, 1000)

Fn: The function executed when the animation is completed. Each element is executed once.

Show ([speed, [fn])

Overview: displays hidden matching elements.

Toggle ([speed], [fn])

Overview: If the element is visible, switch to hidden. If the element is hidden, switch to visible.

 

 

2. zooming up and down

SlideUp (speed, [callback])

Overview: dynamically hides all matching elements by changing height (decreasing upwards) and triggers a callback function after hiding.

Parameter: the string ("slow", "normal", or "fast") with one of the three predefined speeds of speed, or a millisecond value indicating the animation duration (for example, 1000) callback (optional) function executed when the animation is completed

SlideDown (speed, [callback])

Overview: dynamically displays all matching elements by increasing height (down). A callback function is triggered after the display is complete.

SlideToggle ([speed], [fn])
Overview: the visibility of all matching elements is switched by height change, and a callback function is triggered after the switchover is complete.

 

 

3. Fade-in and fade-out effect (opacity changes)

FadeOut (speed, [callback])

Overview: Changes in opacity are used to fade out all matching elements, and a callback function is triggered after the animation is completed.

FadeIn (speed, [callback])

Overview: Changes in opacity are used to fade in all matching elements, and a callback function is triggered after the animation is completed.

FadeToggle ([speed, [fn])

Overview: Changes in opacity are used to enable the fade-in and fade-out effects of all matching elements, and an optional callback function is triggered after the animation is completed.

FadeTo (speed, opacity, [fn])

Overview: Adjust the opacity of all matching elements progressively to the specified opacity and trigger a callback function after the animation is complete.

 

4. Custom Animation

Animate (params, [speed], [fn])

Overview: functions used to create custom animations.

 

Stop ([clearQueue], [gotoEnd])

Overview: Stop all animations that are running on a specified element.

Parameter: clearQueue (Optional). If it is set to true, the queue is cleared. The animation can be ended immediately.

GotoEnd (optional) allows the animation being executed to be completed immediately.

 

Delay (duration)

Overview: Set a delay to postpone the project after execution in the queue.

Parameter duration delay time, in milliseconds

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.