I'm trying to create a transition of two different background-color's on hover.
I've looked up different solutions but none of them have worked out so far.
I have also attempted using -webkit-transition
and transition
and neither have worked so far.
a {
color: inherit;
text-decoration: none;
background-color: #ffdc73; /* hsl(200, 100%, 80% */
box-shadow:
0 7px 30px -10px #ffdc73, /* This one should usually be only box-shadow but I made it two so it would be more visable */
0 7px 30px -10px #ffdc73;
transition: box-shadow 0.3s ease-in-out;
}
a:hover,
a:focus {
outline: none;
background-color: #282936;
color: #fff;
box-shadow:
0 7px 30px -10px #282936, /* rgba(154,160,185,0.05) */
0 7px 30px -10px #282936; /* rgba(166,173,201,0.2) */
transition: box-shadow 0.3s ease-in-out;
}
<a href="#"> Buttton </a>