a.button {
  display: inline-block;
  width: 200px;
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  font-family: sans-serif;
  text-decoration: none;
  color: #333;
  letter-spacing: 2px;
  text-align: center;
  position: relative;
  transition: all 0.5s;
  z-index: 1;
  overflow: hidden;
  border: none;
  background-color: transparent;
}

a.button span {
  position: relative;
  z-index: 2;
}

a.button:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #f0236e;
  transition: all 0.5s;
  z-index: 1;
  border: none;
}

a.button:hover {
  color: #fff;
}

a.button:hover:after {
  width: 100%;
}