body {
  background-color: #222528;
  font-family: sans-serif;
}

#container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button, .v1, .v2, .v3 {
  border-radius: 2px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: block;
  height: 52px;
  letter-spacing: 2px;
  margin: 50px;
  overflow: hidden;
  padding: 15px 50px;
  position: relative;
  text-align: center;
  transition: all 0.5s ease;
  width: 220px;
}

.icon, #i-bell, #i-cart, #i-unlock {
  opacity: 0;
  position: absolute;
  transition: all 0.5s ease;
}

/* Version 1
-------------------------*/
.v1 {
  border-top: 2px solid #9370c2;
  border-bottom: 2px solid #6e5491;
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 2px 100%;
  background-image: linear-gradient(to bottom, #9370c2 0%, #6e5491 100%), linear-gradient(to bottom, #9370c2 0%, #6e5491 100%);
}
.v1:hover {
  background-size: 100% 100%, 2px 100%;
  color: #fff;
  padding-left: 0;
}
.v1:hover #i-bell {
  opacity: 1;
}

#i-bell {
  top: 9px;
  right: 20px;
}

/* Version 2
-------------------------*/
.v2 {
  border: 2px solid #9370c2;
}
.v2:hover {
  background-color: #9370c2;
  padding-left: 0;
}
.v2:hover #i-cart {
  opacity: 1;
  top: 9px;
  right: 20px;
}

#i-cart {
  top: 9px;
  right: -30px;
}

/* Version 3
-------------------------*/
.v3 {
  border: 2px solid #9370c2;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100% 0px;
  background-image: linear-gradient(to bottom, #9370c2 0%, #9370c2 100%);
}
.v3:hover {
  background-size: 100% 100%;
}
.v3:hover span {
  transform: translateY(-50px);
}
.v3:hover #i-unlock {
  opacity: 1;
  bottom: 9px;
}

span {
  display: block;
  transition: all 0.5s ease;
}

#i-unlock {
  bottom: -40px;
  margin-left: -16px;
}
