I implemented a hover effect on my button with the intention of making the button background transparent gradually when hovered over. However, I am encountering difficulties in achieving the desired transparency...
I opted for ease-in as the transition direction.
Here is the code snippet;
<div class="container">
<button class="btn-1">Get in Touch</button>
</div>
CSS;
.container{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
text-align: center;
}
.btn-1{
width: 300px;
height: 100px;
border: none;
color: white;
background-color: rgb(25, 62, 148);
border-radius: 4px;
box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
transition: ease-in 0.3s;
font-size: 2rem;
outline: none;
}
.btn-1:hover{
box-shadow: inset 300px 0 0 0 rgba(0, 0, 0, 0);
}