JSFiddle - React, Tailwind, and code Playground
by firegroove
HTML
<button id="myTest">TEST</button>
<button id="" class="Base">TEST2</button>
CSS
body {
margin: 0;
padding: 0;
background: #323232;
font-family: sans-serif;
}
#myTest {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: solid 1px orangered;
width: 150px;
padding: 5px;
height: 60px;
border-radius: 14px;
background-clip: content-box;
background-color: transparent;
color: #aaa;
font-size: 20px;
overflow: hidden;
transition: 0.5s;
}
#myTest:hover {
border-color: #bb6420;
box-shadow: 0 0px 20px orangered;
background-color: #bb6420;
cursor: pointer;
color: #fff;
transition: 0.2s;
}
#myTest2 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(100%, -50%);
border: solid 1px cyan;
width: 80px;
padding: 5px;
height: 60px;
border-radius: 14px;
background-color: hsla(180, 100%, 12%, 1);
color: #fff;
font-size: 20px;
}
#myTest2:hover {
/* border-color: #bb6420; */
box-shadow: 0 0px 20px cyan;
background-color: cyan;
cursor: pointer;
color: #000;
transition: 0.2s;
}
.Base {
border-radius: 6px;
border: 1px solid transparent;
background-color: rgb(219, 85, 101);
box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.22), inset 0px -2px 0px 0px rgba(0, 0, 0, 0.2);
position: absolute;
left: 80px;
top: 80px;
width: 170px;
height: 53px;
/* z-index: 568; */
}
.Base:hover {
/* transition: 0.2s; */
background-color: rgba(0, 0, 0, 0.1);
/* background-blend-mode: saturation; */
/* box-shadow: inset 0px 2px 0px 0px rgba(0, 0, 0, 0.2); */
}