Javatpoint Logo
Javatpoint Logo

jQuery fadeTo()

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

Syntax:

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

opacity:It specifies the opacity. The opacity value ranges between 0 and 1.

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 fadeTo() effect.

Test it Now

Output:

See the fadeTo() method example with different parameters.





Next TopicjQuery slideDown()





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA