jQuery Effect fadeOut() Method
jQuery Effect fadeOut() Method
The fadeOut() method is used to gradually change the opacity from 1 to 0 for selected elements. In other words, it changes from visible to hidden. It is often used with fadeIn() method.
Syntax:-
Its syntax is:- $(selector).fadeOut(speed, easing, callback)
Further Explanation:-
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the fading effect. The default is 400 milliseconds. |
easing | Optional. Specifies the speed of the element at different points of the animation. The default is swing. |
callback | Optional. A function to be executed after the fadeOut() method is completed. |