Help make animation disappear CSS, JS
Js code
<script> document.getElementById('hide0').onclick = function() { document.getElementById('JSt0').style.display = 'block'; document.getElementById('JSt1').style.display = 'none'; } document.getElementById('hide1').onclick = function() { document.getElementById('JSt0').style.display = 'none'; document.getElementById('JSt1').style.display = 'block'; } </script> Long thought and came up with such a solution
<script> $("#hide0").click(function(){ $("#JSt0").animate({height: "hide"}, 1000); $("#JSt1").animate({height: "show"}, 1000); }); $("#hide1").click(function(){ $("#JSt1").animate({height: "hide"}, 1000); $("#JSt0").animate({height: "show"}, 1000); }); </script> If anyone has more options, please advise