Hello,
When I mouse over the button, the transition effect only works after leaving it.
Can anyone help me, please?
When I mouse over the button, the transition effect only works after leaving it.
CSS:
button {
width: 100%;
margin: 0 auto;
border: none;
border-radius: 8rem;
background: $neutral-darkGrayBlue;
color: $neutral-white;
padding: 1rem;
font-size: 18px;
font-weight: bold;
cursor: pointer;
transition: 1s ease-in;
&:hover {
background: linear-gradient(
$gradient-bg-lightSlateBlue,
$gradient-bg-lightRoyalBlue
);
}
}
Can anyone help me, please?