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:
slideDown()
: This effect is used to display a hidden element by sliding it down from the top of the page.slideUp()
: This effect is used to hide an element by sliding it up to the top of the page.slideToggle()
: This effect is used to toggle betweenslideDown()
andslideUp()
effects. If the element is hidden, it will be displayed usingslideDown()
, and if it’s already visible, it will be hidden usingslideUp()
.fadeIn()
: This effect is used to display a hidden element by gradually increasing its opacity.fadeOut()
: This effect is used to hide an element by gradually decreasing its opacity.fadeToggle()
: This effect is used to toggle betweenfadeIn()
andfadeOut()
effects. If the element is hidden, it will be displayed usingfadeIn()
, and if it’s already visible, it will be hidden usingfadeOut()
.
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.