JSFiddle - React, Tailwind, and code Playground
by David Kyle
HTML
<a class="type-one" href="javascript:void(0);" title="Both Transitions">Hello</a>
<br />
<a class="type-two" href="javascript:void(0);" title="One Transition">There</a>
CSS
a {
display: block;
width: 100px;
border: solid 1px rgb(0, 0, 0);
border-radius: .4rem;
background-color: rgba(200, 200, 200);
color: #232323;
text-align: center;
text-decoration: none;
}
.type-one {
transition: all .3s ease-in-out;
}
.type-one:hover {
background-color: rgb(240, 240, 240);
box-shadow: inset 0px 0px 5px rgba(0, 0, 0, .4);
transition: all .3s ease-in-out;
}
.type-two:hover {
transition: all .3s ease-in-out;
background-color: rgb(240, 240, 240);
box-shadow: inset 0px 0px 5px rgba(0, 0, 0, .4);
}