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})
1.4m articles
1.4m replys
5 comments
57.0k users