<div class="box">
  <div class="card">
    <div class="card__picture">
      <img src="https://images.unsplash.com/photo-1505150892987-424388901632?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" alt="Joshua Gibson">
    </div>
    <div class="card__details">
      <h2 class="card__details-name">Joshua Gibson</h2>
      <span class="card__details-post">Founder</span>
    </div>
  </div>
  <div class="card">
    <div class="card__picture">
      <img src="https://images.unsplash.com/photo-1529932260967-af9d3bbd8138?ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" alt="Amanda Reed">
    </div>
    <div class="card__details">
      <h2 class="card__details-name">Amanda Reed</h2>
      <span class="card__details-post">Director</span>
    </div>
  </div>
  <div class="card">
    <div class="card__picture">
      <img src="https://images.unsplash.com/photo-1526667458881-3455b57a7c50?ixlib=rb-1.2.1&auto=format&fit=crop&w=675&q=80" alt="Melissa Myers">
    </div>
    <div class="card__details">
      <h2 class="card__details-name">Melissa Myers</h2>
      <span class="card__details-post">Producer</span>      
    </div>
  </div>
</div>
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background-color: #212121;
  overflow: hidden;
}

.box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
  grid-gap: 5vw;
  justify-content: space-around;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.card {
  position: relative;
  background-color: #fff;
  height: 35vw;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(#000, 0.2);
  
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: inherit;
    box-shadow: inherit;
    transition: 0.5s;
    z-index: -1;
  }
  
  &:hover {
    &::before {
      transform: rotate(20deg);
      transition-delay: 0.1s;
    }
    
    &::after {
      transform: rotate(10deg);
    }
  }
}

.card__picture {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  background-color: #222;
  border-radius: 3px;
  overflow: hidden;
  transition: 0.5s;
  
  img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .card:hover & {
    bottom: 80px;
  }
}

.card__details {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 15px;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  color: #777;
}

.card__details-name {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
}

.card__details-post {
  color: #f38695;
  display: block;
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.