jQuery Reference

Quick Reference

This is a quick reference list of jQuery effect methods for creating animation effects for the selected elements.

  • jQuery – animate() Method
    The animate() method performs a custom animation on an HTML element, changing one CSS property value to another gradually, creating an animated effect.
  • jQuery – clearQueue() Method
    The clearQueue() method removes all items from the queue that have not yet started to run. If started, they will run to completion.
  • jQuery – delay() Method
    The delay() method sets a timer to delay the execution of the next item in the queue.
  • jQuery – dequeue() Method
    The dequeue() method removes the next function from the queue and executes the function, allowing the remaining items in the queue() to continue.
  • jQuery – fadeIn() Method
    The fadeIn() method gradually changes, fades in, the opacity for the selected element from completely hidden to completely visible.
  • jQuery – fadeOut() Method
    The fadeOut() method gradually changes, fades out, the opacity for the selected element from completely visible to completely hidden.
  • jQuery – fadeTo() Method
    The fadeTo() method gradually changes the opacity for the selected element to a specified opacity, fading in or fading out the element.
  • jQuery – fadeToggle() Method
    The 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() Method
    The finish() method stops the currently-running animations, removes all queued animations, and completes all animations for the selected element.
  • jQuery – hide() Method
    The hide() method hides the selected element. The hidden item will no longer take up space on the page, affecting the layout.
  • jQuery – queue() Method
    The queue() method shows the queue of functions waiting to be executed on the selected element.
  • jQuery – show() Method
    The show() method shows the selected hidden element. The shown item will now take up space on the page, affecting the layout.
  • jQuery – slideDown() Method
    The 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() Method
    The slideToggle() method toggles between the slideUp() and slideDown() methods by sliding down a hidden element and sliding up a visible element.
  • jQuery – slideUp() Method
    The 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() Method
    The stop() method stops the currently running animation for the selected element.
  • jQuery – toggle() Method
    The 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.