cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <div class="showmore-top showmore"></div>
<div id="people" class="closed">
  <div id="content"></div>
<div class="showmore-bottom showmore"></div>

<!-- The problem is that if you press the upper one first, so that the #people is visible, and then press the bottom one, it wont't reset, so you have to press it again. 
Have a go yourself! :)
              #people {
  min-width: 960px;
  width: 100%;
  overflow: hidden;
  background: #222;
  transition: height ease-in 1s;
#content {
  height: 500px;
  width: 500px;
  margin: 0 auto;

#people.closed { height: 0; }
#people.open { height: auto; }

div.showmore-top, div.showmore-bottom {
	height: 50px;
	width: 350px;
	cursor: pointer;
	text-align: center;
	margin: 0 auto;
	background-color: #a1432a;
	box-shadow: inset 0 -3px 10px #6f2815;

	color: #d0c5a5;
	font-family: 'QuadraatWeb-Bold';
	text-transform: uppercase;
	text-shadow: 0 1px 1px #111;
	font-size: 20px;

div.showmore-top {
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;

div.showmore-bottom {
	margin: 0px auto 30px;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
              jQuery("div.showmore").on('click', function(){
  var closed = jQuery('#people').hasClass('closed');
  var open = jQuery('#people').hasClass('open');
  if ( closed = true ) {
  } else if ( open = true ) {
Loading ..................