wave animation button

by Pranab Dey

HTML

<div class="cont">
  this button
</div>

CSS

.cont{
  width: 150px;
  height: 50px;
  color: black;
  border-radius: 40px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: skyblue;
  line-height: 50px;
  overflow: hidden;
}
.cont::before{
  position: absolute;
  content: '';
  border-radius: 50%;
  top: 50%; left: 50%;
  margin-top: -100px;
  margin-left: -100px;
  display: block;
  z-index: -1;
  transition: box-shadow 0.6s ease-out;
  width: 200px; height: 200px;
}
.cont:hover{
  color: white;
  transition: color 0.3s linear 0.3s;
}
.cont:hover::before{
  box-shadow: inset 0 0 50px 100px #ee3769;
}