<div></div>
div {
  margin-left: 50px;
  width: 200px;
  height: 200px;
  background-color: coral;
  animation: square-to-circle 2s infinite alternate;
}
 
@keyframes square-to-circle {
  0%  {
    border-radius:0 0 0 0;
    background:coral;
 
  }
  25%  {
    border-radius:10% 10% 10% 10%;
    background:darksalmon;
    
  }
  50%  {
    border-radius:25% 25% 25% 25%;
    background:indianred;
    
  }
  75%  { 
    border-radius:40% 40% 40% 40%;
    background:lightcoral;
  }
  100% {  
    border-radius:50%;
    background:darksalmon;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.