jQuery fade animation

by Steven Martin

HTML

<span>Click here...</span>
<div id="one"></div>
<div id="two"></div>
<div id="three"></div>

CSS

span {
    color: red;
    cursor: pointer;
  }
  div {
    margin: 3px;
    width: 80px;
    display: none;
    height: 80px;
    float: left;
  }
  #one {
    background: #f00;
  }
  #two {
    background: #0f0;
  }
  #three {
    background: #00f;
  }

JavaScript

$( document.body ).click(function() {
  $( "div:hidden:first" ).fadeIn( "slow" );
});