jQuery Effect fadeTo() Method
jQuery Effect fadeTo() Method
The fadeTo() method is used to gradually change the opacity, for selected elements, to a specified opacity.
Syntax:-
Its syntax is:- $(selector).fadeTo(speed, opacity, easing, callback)
Further Explanation:-
Parameter | Description |
---|---|
speed | Required. Specifies the speed of the fading effect. |
opacity | Required. Specifies the opacity to fade to. It ranges from 0.0 to 1.0 |
easing | Optional. Specifies the speed of the element in different points of the animation. Default value is swing |
callback | Optional. A function to be executed after the fadeTo() method is completed. |
Code Explanation
All Tutorials related to jQuery Effects
animate() Method in jQuery
clearQueue() Method in jQuery
delay() Method in jQuery
dequeue() Method in jQuery
fadeIn() Method in jQuery
Effect fadeOut() Method in jQuery
Effect fadeTo() Method in jQuery
fadeToggle() Method in jQuery
finish() Method in jQuery
hide() Method in jQuery
Effect show() Method in jQuery
queue() Method in jQuery
slideDown() Method in jQuery
slideUp() Method in jQuery
slideToggle() Method in jQuery
stop() Method in jQuery
toggle() Method in jQuery