JQuery Effects  Sliding

please click here for more wordpress cource

JQuery offers various sliding effects that can be used to create animations on web pages. Here are some of the commonly used sliding effects:

  1. slideDown(): This effect is used to display a hidden element by sliding it down from the top of the page.
  2. slideUp(): This effect is used to hide an element by sliding it up to the top of the page.
  3. slideToggle(): This effect is used to toggle between slideDown() and slideUp() effects. If the element is hidden, it will be displayed using slideDown(), and if it’s already visible, it will be hidden using slideUp().
  4. fadeIn(): This effect is used to display a hidden element by gradually increasing its opacity.
  5. fadeOut(): This effect is used to hide an element by gradually decreasing its opacity.
  6. fadeToggle(): This effect is used to toggle between fadeIn() and fadeOut() effects. If the element is hidden, it will be displayed using fadeIn(), and if it’s already visible, it will be hidden using fadeOut().

To use any of these effects in your jQuery code, you need to select the element you want to animate and call the appropriate effect function on it. For example, if you want to slide down a hidden element with the ID my Element, you can use the following code:

$("#myElement").slideDown();

Similarly, you can use other effect functions to create different types of animations on your web page.

You may also like...

Popular Posts

Leave a Reply

Your email address will not be published. Required fields are marked *