New Question: Is there a way to smoothly transition the visibility of a div element without using display:none or CSS, as these methods remove the div from view rather than simply hiding it, causing elements below to shift?
If I try setting opacity:0 or visibility:hidden, the fadein effect does not function properly.