The site achieves this with jQuery slide effect toggle. Learn more here.
Example (from link above):
HTML:
<p>Click anywhere to toggle the box.</p>
<div style="width: 100px; height: 100px; background: #ccc;" id="toggle"></div>
JS:
$( document ).click(function() {
$( "#toggle" ).toggle( "slide" );
});