<div class="container">
  <div class="featured-img">
    <img src="https://images.unsplash.com/photo-1583511655857-d19b40a7a54e"/>
  </div>
</div>
html, body {
  height: 100%;
  font-size: 10px;
}

.container {
  margin: 0 auto;
  max-width: 1000px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-img {
  background: yellow;
  width: 50%;
  position: relative;
  
  img {
    width: 50rem;
    height: auto;
    display: block;
  }
  
  &:hover {
    &:before {
      bottom: 4rem;
      right: 6rem;
    }
    
    &:after {
      top: 4rem;
      left: 6rem;
    }
  }
  
  &:before, &:after {
    content:'';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: .3s ease;
  }
  
  &:before {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAAU0lEQVQoU43QMRYAEQwE0ExHyf3vqNxybF6wRIpNZ3whIL74UJDh4zNQpFWTSMOx9y0m0m6FdmDDBnc073QYIQqwweDxa5jR+Zru+gUNCvkPvrgDcCIgJ6cWP4UAAAAASUVORK5CYII=) repeat;
    bottom: 2rem;
    right: 2rem;
  }
  
  &:after {
    background: #00fff7;
    top: 2rem;
    left: 2rem;
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.