What are the effects methods used in jQuery?

In this blog, we are Going to learn What are the effects methods used in jQuery.What are the effects methods used in jQuery?

jQuery enables us to add effects to web pages. jQuery effects can be classified into fading, sliding, hiding/showing and animation effects.

Jquery Effects

  1. Display Effects
  1. Fading Effects
  1. Sliding Effects
  1. Other Effects

jQuery provides several methods for effects on web pages. Below is the full list of jQuery effect methods:

hide() – Hides the selected elements.
show() – Shows the selected elements.
toggle() Toggles between the hide() & show() methods.

fadeIn() Fades in the selected elements.
fadeOut() – Fades out the selected elements.
fadeToggle() Toggles between the fadeIn() & fadeOut() methods.
fadeTo() Fades in/out the selected elements to a given opacity.

slideDown() Slide-down (shows) the selected elements.
slideUp() Slide-up (hides) the selected elements.
slideToggle() Toggles between the slideUp() & slideDown() methods.

animation() Runs a custom animation on the selected elements.
delay() Sets a delay for all queued function on the selected elements.

Add jquery.min.js in your closing <body>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Display Effect Example:

For Example: Hide <p> all elements:


For Example: Show <p> all elements:


For Example: Toggle hide & show for all <p> elements:


Fading Effect Example:

For Example: Fade in all <p> elements:


For Example: Fade out all <p> elements:


For Example: Toggle between fade in and fade out in separate boxes:


For Example: Gradually change the opacity of all <p> elements:

  $("p").fadeTo(2000, 0.8);

Sliding Effect Example:

For Example: Slide-down (show) all hidden <p> elements:


For Example: Slide-up (hide) all <p> elements:


For Example: Toggle between slideUp() and slideDown() for all <p> elements:


Other Effect Example:

For Example: Animation an element, by changing its height:

  $("#div").animate({height: "400px"});

For Example: Delay differnt <p> element:


Hope this blog is helpful for you ,Thanks for reading this blog.

What are the effects methods used in jQuery?

expoundsofttechsolution A brief discussion about Lazy Loading in Angular.