<div class="flip-container" ontouchstart="this.classList.toggle('hover');">
	<div class="flipper">
		<div class="front">
			<!-- front content -->
      <img src="https://picsum.photos/270/180/?random" alt="Image alt text" />
      <div class="block-content">
        <h3>4 Oct 2015</h3>
        <h2>Art for all lorem ipsum very long title</h2>
        <div class="tag">Exhibition</div>
        <div class="tag">Kids &amp; families</div>
      </div>
		</div>
		<div class="back">
			<!-- back content -->
  <h3>In short</h3>
  <p>Art for all explores art produced around the world by kids, for kids. With guidance from some of the worlds most renowned modern artists...</p>
  <a class="button" href="#">Find out more</a>
		</div>
	</div>
</div>
/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #f2f2f2;
  font-family: Arial, sans-serif;
  color: #000;
  padding: 20px;
}
h3 {
  font-size: 16px;
}
/* entire container, keeps perspective */
.flip-container {
  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  -ms-perspective: 1000;
	perspective: 1000;
  -ms-transform: perspective(1000px);
  -moz-transform: perspective(1000px);
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.flip-container, .front, .back {
	width: 270px;
	height: 400px;
}

.front, .back {
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
  text-align: center;
}

.back {
  background: #343434;
  color: #fff;
  padding: 40px 20px;
}

span .h3, .back h3 {
  text-transform: uppercase;
}

.front h3 {
  font-weight: normal;
  margin-top: 0;
}

.front h3:after {
  content: "";
  height: 2px;
  width: 40px;
  display: block;
  background: rgba(0,0,0,0.1);
  margin: 15px auto;
}

.block-content {
  padding: 15px 20px 20px 20px;
}

.front h2 {
  font-size: 22px;
  font-weight: normal;
  line-height: 28px;
}

.tag {
  color: #000;
  background: #f2f2f2;
  display: inline-block;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 15px;
}

.back p {
  margin: 40px 0;
  line-height: 20px;
}

.back .button {
  background: transparent;
  border: solid 2px #fff;
  color: #fff;
  text-decoration: none;
  padding: 15px 40px;
  display: block;
  font-size: 20px;
  margin: 0 10px;
  transition: all 200ms ease-in-out;
}

.back .button:hover,
.back .button:focus {
  background: #f16a11;
  border: solid 2px #f16a11;
}

/* flip speed goes here */
.flipper {
	transition: 0.4s;
	transform-style: preserve-3d;

	position: relative;
}

/* hide back of pane during swap */
.front, .back {
	backface-visibility: hidden;
	transition: 0.6s;
	transform-style: preserve-3d;

	position: absolute;
	top: 0;
	left: 0;
}

/*  UPDATED! front pane, placed above back */
.front {
	z-index: 2;
	transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
	transform: rotateY(-180deg);
}

/*  UPDATED! flip the pane when hovered */
	.flip-container:hover .back {
		transform: rotateY(0deg);
	}
	.flip-container:hover .front {
	    transform: rotateY(180deg);
	}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.