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.
November 18, 2016 at 7:37 am
#247995
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