button {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    display: block;
    width: 240px;
    padding: 40px;
    margin: 0 auto;
    border: 0;
    cursor: pointer;
    border-radius: 2px;
    transform: translateY(-50%);
    box-shadow: 0 10px 20px -5px #3b5f7d;
    overflow: hidden;
  }

  button:before,
  button:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  button:after {
    background-color: #000;
    opacity: 0.16;
    z-index: 2;
  }
  button div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
  }
  button div:before,
  button div:after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    color: #0d0404;
    font-size: 30px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    padding: 25px 0;
    transition: 0.3s ease all;
  }
  button div:before {
    content: "Submit";
    letter-spacing: 0;
    opacity: 1;
    transform: scale(1);
  }
  button div:after {
    content: "Done!";
    letter-spacing: -10px;
    transform: scale(0);
    opacity: 0;
  }
  button:hover:before {
    transform: scale(1.3);
  }
  button:hover div:before {
    letter-spacing: 3px;
    opacity: 0;
    transform: scale(4);
  }
  button:hover div:after {
    letter-spacing: 0;
    opacity: 1;
    transform: scale(1);
  }