<h3>Pure css3 animated cards</h3>

<br /><br />

<section id="cards-container">

  <!--  Slide  -->
  <div class="card-wrapper">
    <div class="card">
      <div class="card-top gradient-red">
        <div class="icon">
          <i class="fa fa-code"></i>
        </div>
      </div>
      <div class="card-content">
        <h4 class="card-title">Develop</h4>
        <p>Learn, master and develop beutiful art using CSS3</p>
      </div>
      <div class="overlay slider">
        <h4>Slider</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores, mollitia, assumenda.</p>
        <button class="btn btn-default overlay-btn">Click Me</button>
      </div>
    </div>
    <!-- End of card  -->
  </div>

  <!--  Fade  -->
  <div class="card-wrapper">
    <div class="card">
      <div class="card-top gradient-blue">
        <div class="icon">
          <i class="fa fa-bug"></i>
        </div>
      </div>
      <div class="card-content">
        <h4 class="card-title">Test</h4>
        <p>Test art work using chrome debugging tool for cross browser support.</p>
      </div>
      <div class="overlay fade">
        <h4>Fade</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores, mollitia, assumenda.</p>
        <button class="btn btn-default overlay-btn">Click Me</button>
      </div>
    </div>
  </div>


  <!-- Zoom -->
  <div class="card-wrapper">
    <div class="card">
      <div>
        <div class="card-top gradient-green">
          <div class="icon">
            <i class="fa fa-rocket"></i>
          </div>
        </div>
        <div class="card-content">
          <h4 class="card-title">Hello World!</h4>
          <p>Show case your skills in Codepen.</p>
        </div>
      </div>
      <div class="overlay zoom">
        <h4>Zoom</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores, mollitia, assumenda.</p>
        <button class="btn btn-default overlay-btn">Click Me</button>
      </div>
    </div>
  </div>


  <!-- Flip -->
  <div class="card-wrapper flip-container">
    <div class="card flip-card">
      <div class="front">
        <div class="card-top gradient-pink">
          <div class="icon"><i class="fa fa-bell"></i></div>
        </div>
        <div class="card-content">
          <h4 class="card-title">Update</h4>
          <p>Update,sharpen skills from experts in Codepen.</p>
        </div>
      </div>
      <!--    /.front    -->

      <div class="back">
        <h4>Flip</h4>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores, mollitia, assumenda.</p>
        <button class="btn btn-default overlay-btn">Click Me</button>
      </div>
    </div>
  </div>
</section>
<!--End of  Flipping caption -->
body {
  font-family: 'Raleway', sans-serif;
  background-color: #F2F2F2;
}

h3 {
  font-family: 'Baloo Bhaina';
  text-align: center;
  color: #00868b;
  font-size: 4rem;
}

h4 {
  text-transform: uppercase;
  margin-top: 40px;
  disply: block;
  font-family: 'Baloo Bhaina';
}

#cards-container {
  width: 100%;
  height: auto;
}

.card-wrapper {
  width: 49%;
  text-align: center;
  display: inline-block;
  padding: 20px;
  10px height: 400px;
}

.card {
  height: 280px;
  width: 300px;
  margin: 0 auto;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 5px 5px gray;
  background-color: #fff;
  padding: 0;
  z-index: 0;
}

.card-top {
  height: 100px;
  position: relative;
  background-color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.icon {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #d3d3d3;
  border: 5px solid #fff;
  box-sizing: border-box;
  left: 100px;
  top: 40PX;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.9rem;
}

.card-content {
  padding: 10px;
  height: auto;
  background-color: #fff;
  height: 100%;
}

.card-title {
  color: #OOO;
}

.card-content p,
.overlay p {
  font-family: 'Raleway', sans-serif;
  color: #333;
  padding: 10px;
}

.overlay p {
  color: #fff;
}


/* card-top colors */

.gradient-red {
  background: linear-gradient( to top, transparent, #CB422A), linear-gradient( to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.gradient-blue {
  background: linear-gradient( to top, transparent, #2D699B), linear-gradient( to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.gradient-green {
  background: linear-gradient(to top right, transparent, #00A482), linear-gradient( to bottom left, transparent, rgba(0, 0, 0, 0.8));
}

.gradient-pink {
  background: linear-gradient(to bottom left, transparent, #CE3B67), linear-gradient( to top right, transparent, rgba(0, 0, 0, 0.8));
}


/* overlay  */

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 280px;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #FFF;
  justify-content: center;
  padding: 10px;
  border-radius: 5px;
}


/*overlay-btn  */

.overlay-btn {
  background-color: transparent;
  color: #FFF;
  font-family: 'Railway', sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 0px;
  border-bottom: 1px solid #FFF;
  transiton: all 0.2s ease;
}

.overlay-btn:hover {
  color: #FFF39A;
  background-color: transparent;
  border-bottom: 1px solid #FFF39A;
  transform: scale(1);
}


/* slide */

.slider {
  transform: translateX(-100%);
  transition: all 0.4s ease-out;
}

.card:hover .slider {
  transform: translateX(0);
}


/* fade*/

.fade {
  transition: all 0.6s ease-in;
  opacity: 0;
}

.card:hover .fade {
  opacity: 1;
}


/* Zoom */

.zoom {
  opacity: 0;
  transition: all 0.7s ease-in;
  border-radius: 5px;
  transform: scale(0);
}

.card:hover .zoom {
  opacity: 1;
  transform: scale(1.1);
}


/* flip */

.flip-container {
  perspective: 1000px;
}

.flip-card {
  transition: transform 3s ease;
  transform-style: preserve-3d;
  poistion: relative;
}

.front,
.back {
  position: absolute;
  top: 0;
  left: 0;
  height: 280px;
  width: 300px;
  box-sizing: border-box;
  border-radius: 5px;
}

.front {
  z-index: 5;
  background-color: #fff;
}

.back {
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #FFF;
  justify-content: center;
  padding: 10px;
  transform: rotateY(180deg);
}

.flip-card:hover {
  transform: rotateY(180deg);
}

.flip-card:hover .back {
  transform: rotateY(-180deg);
}

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css
  2. https://fonts.googleapis.com/css?family=Raleway
  3. https://fonts.googleapis.com/css?family=Baloo+Bhaina
  4. https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.