кнопка для сайта

связаться с нами

by Denis Tverdokhlebov

HTML

<button>КОНТАКТЫ  </button>

CSS

@import url("https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700");
body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100vh;
}
body button {
  border: none;
  background: transparent;
  padding: 0 24px;
  font-size: 16px;
  line-height: 52px;
  font-family: 'Open Sans Condensed', sans-serif;
  position: relative;
  color: #3E4651;
  cursor: pointer;
  letter-spacing: 0.5px;
}
body button:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 48px;
  background: transparent;
  border: 2px solid #4AB9F2;
  z-index: -1;
  border-radius: 5px;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
body button:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background: #fff;
  height: 30px;
  width: 80%;
  z-index: -1;
  -webkit-transition: 0.3s linear;
  transition: 0.3s linear;
}
body button:hover:after {
  opacity: 0;
  background: #4AB9F2;
}
body button:hover {
  color: #fff;
}
body button:hover:before {
  width: 100%;
  background: #4AB9F2;
  -webkit-box-shadow: 0 10px 90px -2px rgba(0, 0, 0, 0.2);
          box-shadow: 0 10px 90px -2px rgba(0, 0, 0, 0.2);
}