.block {
  font-size: 16px;
  color: white;
  background: linear-gradient(135deg, #2f4cef 0%,#2989d8 35%,#82e57b 100%);
  padding: 20px;
  margin-left: -45px;
  
  width: 120px;
  height: 150px;
  display: inline-block;
  
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, .4);
  
  transition: all .1s ease-in-out;
}

.block:first-child {
  margin-left: 0;
}

.block:hover {
/*   transform: translateY(-30px); */
/*   transform: translateX(30px); */
  transform: translate(0px, -15px) rotate(10deg);
}

.block:hover ~.block {
  transform: translatex(30px);
}