<body>
  <div class="container">
    <div class="card">
      <div class="face face1">
        <div class="content">
          <img src="https://i.pinimg.com/originals/e6/9c/63/e69c63fbc8a28cec7057febd805e3200.jpg">
          <h3>Happy Early Birthday to Myself</h3>
        </div>
      </div>
      
      <div class="face face2">
         <div class="content">
           <p>I am wishing myself happy birthday ahead of time to try to make myself a little less scared of it. To be honest, I am extremely nervous about turning eighteen this month.</p>
           <a href="#">Seventeen</a>
        </div>
      </div>
    </div>
    
    <div class="card">
      <div class="face face1">
        <div class="content">
          <img src="https://ak.picdn.net/shutterstock/videos/7447282/thumb/1.jpg">
          <h3>Happy Real Birthday</h3>
        </div>
      </div>
      
      <div class="face face2">
         <div class="content">
           <p>This is for the actual day of my birthday. Wish me a happy birthday on the 15th!</p>
           <a href="#">Eighteen</a>
        </div>
      </div>
    </div>
    
    <div class="card">
      <div class="face face1">
        <div class="content">
          <img src="https://www.lefthudson.com/wp-content/uploads/2019/11/pink-desktop-wallpaper-new-30-pink-abstract-hd-wallpapers-download-of-the-day-of-pink-desktop-wallpaper.jpg">
          <h3>Happy Belated Birthday</h3>
        </div>
      </div>
      
      <div class="face face2">
         <div class="content">
           <p>I guess this is for after my birthday. If these cards turning out looking as good as I hope, I can use these as virtual gifts for my family. (I'm brilliant, lol)</p>
           <a href="#">Adult</a>
        </div>
      </div>
    </div>
  </div>
</body>
@import url('https://fonts.googleapis.com/css2?family=Grenze+Gotisch&display=swap');

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Grenze Gotisch', cursive;
}

.container {
  width: 1000px;
  position: relative;
  display: flex;
  justify-content: space-between;
}

.container .card {
  position: relative;
}

.container .card .face {
  width: 300px;
  height: 200px;
  transition: 0.5s;
}

.container .card .face.face1 {
  position: relative;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(100px);
}

.container .card:hover .face.face1 {
  background: #ff0057;
  transform: translateY(0);
}

.container .card .face.face1 .content {
  opacity: 0.2;
  transition: .5s;
  text-align: center;
}

.container .card:hover .face.face1 .content {
  opacity: 1;
}

.container .card .face.face1 .content img {
  max-width: 100px;
}

.container .card .face.face1 .content h3 {
  margin: 10px 0 0;
  padding: 0;
  color: #fff;
  text-align: center;
  font-size: 1.5em;
}

.container .card .face.face2 {
  position: relative;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .8);
  transform: translateY(-100px);
}

.container .card:hover .face.face2 {
  transform: translateY(0);
} 

.container .card .face.face2 p {
  margin: 0;
  padding: 0;
}

.container .card .face.face2 a {
  margin: 15px 0 0;
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  color: #333;
  padding: 5px;
  border: 1px solid #333;
}

.container .card .face.face2 a:hover {
  background: #333;
  color: #fff;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.