📅  最后修改于: 2020-11-25 02:17:26             🧑  作者: Mango
jQuery使我们能够在网页上添加效果。 jQuery效果可分为褪色,滑动,隐藏/显示和动画效果。
jQuery提供了许多在网页上产生效果的方法。 jQuery效果方法的完整列表如下:
No. | Method | Description |
---|---|---|
1) | animate() | performs animation. |
2 | clearQueue() | It is used to remove all remaining queued functions from the selected elements. |
3) | delay() | sets delay execution for all the queued functions on the selected elements. |
4 | dequeue() | It is used to remove the next function from the queue, and then execute the function. |
5) | fadein() | shows the matched elements by fading it to opaque. In other words, it fades in the selected elements. |
6) | fadeout() | shows the matched elements by fading it to transparent. In other words, it fades out the selected elements. |
7) | fadeto() | adjusts opacity for the matched element. In other words, it fades in/out the selected elements. |
8) | fadetoggle() | shows or hides the matched element. In other words, toggles between the fadeIn() and fadeOut() methods. |
9) | finish() | It stops, removes and complete all queued animation for the selected elements. |
10) | hide() | hides the matched or selected elements. |
11) | queue() | shows or manipulates the queue of methods i.e. to be executed on the selected elements. |
12) | show() | displays or shows the selected elements. |
13) | slidedown() | shows the matched elements with slide. |
14) | slidetoggle() | shows or hides the matched elements with slide. In other words, it is used to toggle between the slideUp() and slideDown() methods. |
15) | slideup() | hides the matched elements with slide. |
16) | stop() | stops the animation which is running on the matched elements. |
17) | toggle() | shows or hides the matched elements. In other words, it toggles between the hide() and show() methods. |