Quick Reference
This is a quick reference list of jQuery effect methods for creating animation effects for the selected elements.
- jQuery – animate() MethodThe animate() method performs a custom animation on an HTML element, changing one CSS property value to another gradually, creating an animated effect.
- jQuery – clearQueue() MethodThe clearQueue() method removes all items from the queue that have not yet started to run. If started, they will run to completion.
- jQuery – delay() MethodThe delay() method sets a timer to delay the execution of the next item in the queue.
- jQuery – dequeue() MethodThe dequeue() method removes the next function from the queue and executes the function, allowing the remaining items in the queue() to continue.
- jQuery – fadeIn() MethodThe fadeIn() method gradually changes, fades in, the opacity for the selected element from completely hidden to completely visible.
- jQuery – fadeOut() MethodThe fadeOut() method gradually changes, fades out, the opacity for the selected element from completely visible to completely hidden.
- jQuery – fadeTo() MethodThe fadeTo() method gradually changes the opacity for the selected element to a specified opacity, fading in or fading out the element.
- jQuery – fadeToggle() MethodThe fadeToggle() method toggles between the fadeIn() and fadeOut() methods by fading in a faded-out element and fading out a faded-in element.
- jQuery – finish() MethodThe finish() method stops the currently-running animations, removes all queued animations, and completes all animations for the selected element.
- jQuery – hide() MethodThe hide() method hides the selected element. The hidden item will no longer take up space on the page, affecting the layout.
- jQuery – queue() MethodThe queue() method shows the queue of functions waiting to be executed on the selected element.
- jQuery – show() MethodThe show() method shows the selected hidden element. The shown item will now take up space on the page, affecting the layout.
- jQuery – slideDown() MethodThe slideDown() method slides down and shows the selected element. It works on elements hidden with jQuery methods and those with display: none in CSS.
- jQuery – slideToggle() MethodThe slideToggle() method toggles between the slideUp() and slideDown() methods by sliding down a hidden element and sliding up a visible element.
- jQuery – slideUp() MethodThe slideUp() method slides up and hides the selected element. The hidden item will no longer take up space on the page, affecting the layout.
- jQuery – stop() MethodThe stop() method stops the currently running animation for the selected element.
- jQuery – toggle() MethodThe toggle() method toggles between hide() and show() by showing a hidden element and hiding a visible element.
jQuery Notes:
- To use jQuery on your site, it must first be downloaded from the official jQuery site and linked to in your document <head>, or linked to via a CDN in your document <head>
- It is generally good practice to place your jQuery code/function inside the document load function so that the action takes place ONLY after the document has finished loading
- When using jQuery, single or double quotation marks are acceptable and work identically to one another; choose whichever you prefer, and stay consistent
We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.