все гайды

Если не знаете, как сделать такую анимацию кнопки, то этот туториал для Вас 🚀

Если не знаете, как сделать такую анимацию кнопки, то этот туториал для Вас 🚀
Задача
Очередная интересная и не сложная стилизация кнопки средствами html и css.
HTML
<div className="container">
  <div className="center">
    <div className="ccd">
      <a href="#" className="ddott">BUTTON</a>
    </div>
  </div>
</div>
CSS
body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #323232;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
}

.container {
  width: 400px;
  height: 400px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.center {
  width: 180px;
  height: 60px;
  position: absolute;
}
.ccd {
  overflow: hidden;
  margin: 30px 0;
  position: relative;
}

a.ddott {
  display: block;
  text-transform: uppercase;
  line-height: 50px;
  height: 50px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 100px 0 #FFF,1px 76px 10px #000;
  color: #FFF;
  background: cornflowerblue;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  width: 120px;

}
a.ddott:hover {
  text-shadow: 0 50px 0 #FFF, 1px 51px 20px #FFF;
  margin-top: -50px;
  height: 100px;
  background: #222;
}

Есть идеи?
Расскажите нам о них

hello@it-justice.com
Privacy policyTerms & conditions
Behance
Вконтакте
Dribble
Linkedin
Goodfirms
©2026. ООО Джастис-ИТ. Все права защищены.