JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<h2 class="header_title">Быстрый вывоз старой бытовой техники <br> <span>(холодильники, телевизоры, стиральные машины, плиты и др.)</span></h2>
<div class="intro">
<div class="intro_button">
<a onclick="show_request('block')">Оформить заявку</a>
</div>
</div>
</div>
CSS
.container{
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
.header_title{
font-size: 28px;
color: #58991a;
text-align: center;
margin-top: 100px;
}
.header_title span{
font-size: 15px;
}
.intro{
background: url("../img/header_bg.png") center no-repeat/cover;
height: 550px;
background-size: 68% auto;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.intro_button{
width: 230px;
margin: 0 auto;
position: absolute;
top: 60%;
left: 42%;
z-index: 1;
cursor: pointer;
}
.intro_button h1{
text-align: center;
}
.intro_button a{
border: solid 3px #445903;
font-size: 20px;
text-decoration: none;
text-transform: uppercase;
width: 230px;
height: 50px;
color: #333;
display: block;
text-align: center;
line-height: 45px;
position: relative;
font-weight: 700;
border-radius: 8px;
overflow: hidden;
}
.intro_button a::before,
.intro_button a::after{
position: absolute;
content: '';
width: 100%;
height: 100%;
background: #589900;
top: 0;
left: -100%;
opacity: .5;
transition: .3s;
z-index: -1;
}
.intro_button a::after{
opacity: 1;
transition-delay: .2s;
}
.intro_button a:hover{
color: #fff;
transition: .5s;
}
.intro_button a:hover::before,
.intro_button a:hover::after{
left: 0;
}