jQuery fadeIn() Method
jQuery fadeIn() Method
The fadeIn() method is used to gradually change the opacity from 0 to 1 for selected elements. In other words, it changes from hidden to visible. It is often used with fadeOut() method.
Syntax:-
Its syntax is:- $(selector).fadeIn(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 fadeIn() method is completed. |