Toggle between fading in and fading out different boxes:
If the elements are faded out, fadeToggle() will fade them in.
If the elements are faded in, fadeToggle() will fade them out.
Note: Hidden elements will not be displayed at all (no longer affects the layout of the page).
|speed||Optional. Specifies the speed of the fading effect
|easing||Optional. Specifies the speed of the element in different points of the
effect. Default value is "swing"
|callback||Optional. A function to be executed after the fadeToggle() method is
To learn more about callback, please read our jQuery Callback chapter
- Using the speed parameter
How to use the speed parameter to specify the speed of the fading effect.
- Using the callback parameter
How to use the callback parameter to execute a function after the fadeToggle() method is completed.
Your message has been sent to W3Schools.