JSFiddle - React, Tailwind, and code Playground
HTML
<button class="ripple">Button</button>
CSS
/* Ripple effect */
.ripple {
background-color: #fff;
background-position: center;
transition: background 1s;
}
.ripple:hover {
background: #fff radial-gradient(circle, transparent 1%, #47a7f5 1%) center/15000%;
}
.ripple:active {
background-color: #6eb9f7;
background-size: 100%;
transition: background 0s;
}