The normal behavior when using fadeIn and fadeOut is to use the display property. However, this changes the layout of the page.
fadeIn
fadeOut
display
How can I make fadeIn and fadeOut not modify the layout of the page?
Also
instead of .fadeIn() you can .animate({opacity:1}) and instead of .fadeOut() you can .animate({opacity:0})
.fadeIn()
.animate({opacity:1})
.fadeOut()
.animate({opacity:0})
2.1m questions
2.1m answers
60 comments
57.0k users