Css Button Liên hệ trên menu
<style>
.wrap_home {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.button_lien_he {
min-width: 150px;
min-height: 50px;
font-family: ‘Roboto’, sans-serif;
font-size: 15px;
text-transform: uppercase;
letter-spacing: 1.3px;
font-weight: 700;
color: white;
background: #aa2231;
background: linear-gradient(90deg, #e7485b 0%,#e94b5e 100%);
border: none;
border-radius: 1000px;
transition: all 0.3s ease-in-out 0s;
cursor: pointer;
outline: none;
position: relative;
padding: 1px;
}
.button_lien_he::before {
content: ”;
border-radius: 1000px;
min-width: calc(150px + 12px);
min-height: calc(50px + 12px);
border: 6px solid #ffee00;
box-shadow: 0 0 60px rgba(0,255,203,.64);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0;
transition: all .3s ease-in-out 0s;
}
.button_lien_he:hover, .button:focus {
color: #white;
transform: translateY(-6px);
}
.button_lien_he:hover::before, .button_lien_he:focus::before {
opacity: 1;
}
.button_lien_he::after {
content: ”;
width: 30px; height: 30px;
border-radius: 100%;
border: 6px solid #eb678e;
position: absolute;
z-index: -1;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: ring 1.5s infinite;
}
.button_lien_he:hover::after, .button_lien_he:focus::after {
animation: none;
display: none;
}
@keyframes ring {
0% {
width: 30px;
height: 30px;
opacity: 1;
}
100% {
width: 300px;
height: 300px;
opacity: 0;
}
}
</style>
<div class=”wrap_home”>
<div id=”button_id”>
<button class=”button_lien_he”>Nhận tư vấn</button>
</div> </div>
Css button Xem ngay các dự án trên trang chủ
Linhproductions.com