I have a question regarding hiding elements on a webpage. When I set a div to display: none
, the other elements in the DOM will abruptly move up to fill its space. Is there a way to animate this movement so that it transitions smoothly and gently instead? Your assistance is greatly appreciated!