https://jsfiddle.net/rqkt58L1/
You can simply turn off the mini-height during the animation, and then turn it on again when the animation is over:
$(document).ready(function () {
$(".toggle-display").click(function () {
var minHeight = $("#selected-display").css('min-height');
$("#selected-display").css('min-height',0).slideToggle("slow", function() {
$(this).css('min-height', minHeight);
});
});
});
source
share