Although it seems like a basic question i wasn't able to find the solution to this problem. What I want is a gradient background button like this(https://prnt.sc/r0mx54). When the user hovers over this button then I want this behavior (https://prnt.sc/r0mxtj). Now the problem is I can make this effect by changing the background color from gradient to any normal color(in this case white). But when I try to achieve this effect by setting the background to either transparent or inherit then I wasn't able to do so. Here is my code. Please help. Normal button feature gradient background-color. Hover button feature gradient border, transparent background-color.
.flex {
display: flex;
flex-wrap: wrap;
}
.border-radius-20 {
border-radius: 20px;
}
.uppercase {
text-transform: uppercase;
}
.color-white {
color: #fff;
}
.all-center {
align-items: center;
justify-content: center;
}
.bg-gradient {
background: linear-gradient(to right, #049eca, #12adb8, #1cb8aa 70%);
}
li {
padding: 2px;
}
li:hover a {
background: #fff;
}
<ul>
<li class="flex relative all-center border-radius-20 bg-gradient">
<a href="#" class="pd-8-10 border-radius-20 bg-gradient color-white uppercase">Schedule a Meeting</a>
</li>
</ul>