jQuery fadeTo()

jQuery fadeTo() method is used to fading to a given opacity.

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.

Example :-

Result

See the fadeTo() method example with different parameters.