Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Div with dynamic height pushing down content without leaving blank whitespace. Reply To: Div with dynamic height pushing down content without leaving blank whitespace.

#247995
Beverleyh
Participant

If you don’t want to use jQuery (and it’s SlideUp/SlideDown methods), how about using Velocity.js instead. It handles the animation part in conjunction with a custom addition or removal of a trigger class. I did something like what you’re doing (dynamic-height content, that expands vertically to push stuff underneath down too) so maybe you can extract the bits you need from this http://blog.fofwebdesign.co.uk/29-slideup-slidedown-content-without-jquery-velocityjs