body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #222;
}

a {
  text-decoration: none;
  color: white;
  font-family: sans-serif;
  font-size: 40px;
  border: 3px solid white;
  padding: 40px 80px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

a:before {
  content: "";
  background-color: white;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  position: absolute;
  transition: all 0.3s;
  transform: translateX(-100%) rotate(45deg);
}

a:hover:before {
  transform: translateX(100%) rotate(45deg);
}

a:hover {
  background-color: #f44336;
}
