/* 

bg color and content will slide up to show other bg color and content 

<button class="image-57" role="button"><span class="text">Button 57</span><span>Alternate text</span></button>

*/


/* CSS */
.image-57 {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff;
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  line-height: 15px;
  padding: 7px 0px;
  text-decoration: none;
  cursor: pointer;
  /* background: #FF8013; */
  
 
  
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.image-57 span:first-child {
  position: relative;
  transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
  z-index: 10;
}

.image-57 span:last-child {
  color: black;
  display: block;
  position: absolute;
  bottom: 0;
  transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
  z-index: 100;
  opacity: 0;
  top: 50%;
  left: 50%;
  /*transform: translateY(225%) translateX(-50%);
   height: 14px;
  line-height: 13px; */
}

.image-57:after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transform-origin: bottom center;
  transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
  transform: skewY(9.3deg) scaleY(0);
  z-index: 50;
}



.image-57:hover:after {
  transform-origin: bottom center;
  transform: skewY(9.3deg) scaleY(2);
   
  /* transition-timing-function: ease-in; */
}

.image-57:hover span:last-child {
  /* transform: translateX(-50%) translateY(-100%);  */ transform: translateX(-50%) translateY(-55%); 
  opacity: 1;
  /* transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1); */
  color: #000;
  
  
  
  
}


