Javatpoint Logo
Javatpoint Logo

jQuery fadeToggle()

jQuery fadeToggle() method is used to toggle between the fadeIn() and fadeOut() methods. If the elements are faded in, it will make them faded out and if they are faded out it will make them faded in.

Syntax:

speed: It is an optional parameter. It specifies the speed of the delay. Its possible vales are slow, fast and milliseconds.

easing: It specifies the easing function to be used for transition.

callback: It is also an optional parameter. It specifies the function to be called after completion of fadeToggle() effect.

Let's take an example to demonstrate jQuery fadeToggle() effect.

Test it Now

Output:

See the fadeToggle() method example with different parameters.





Next TopicjQuery fadeTo()




Please Share

facebook twitter google plus pinterest tumbler

Latest 4 Tutorials