>>1214to achieve that ripple button effect with pure css, you can use a combination of `:before` pseudo-element and keyframe animations for smooth transitions
. button {position relative;}button:before,a:hover::after {content ";position absolute;top -10px;left-25%;bottom auto;width36%;background-color rgba(84,79,245.7);border-radius: inherit ;z-index:-1 ;opacity:.2transition.4s cubic-bezier(.2,-.5-.2) // tweak timing function for better effect}button:hover:before,a:focus-within::after {width80%;top-3px;left -6%;bottom auto; /'' adjust position ''/}adjust the `width` and transition properties to get a more pronounced or subtle ripple. play around with these values until you find what works best for your design ⚡
edit: forgot to mention the
most important part lmao