JSFiddle - React, Tailwind, and code Playground

by perqa

HTML

<div class="someElement"></div>

CSS

@keyframes springIn {
  0% { transform: scale(0.0); animation-timing-function: cubic-bezier(0.33333, 0.66667, 0.66667, 1); }
  69.0983% { transform: scale(1.2); animation-timing-function: cubic-bezier(0.33333, 0, 0.66667, 0.33333); }
  100% { transform: scale(1.0); }
}

 @-webkit-keyframes springIn {
  0% { -webkit-transform: scale(0.0); -webkit-animation-timing-function: cubic-bezier(0.33333, 0.66667, 0.66667, 1); }
  69.0983% { -webkit-transform: scale(1.2); -webkit-animation-timing-function: cubic-bezier(0.33333, 0, 0.66667, 0.33333); }
  100% { -webkit-transform: scale(1.0); }
}


.someElement { 
    width:50px;
    height:50px;
    border-radius:50px;
    background-color:black;
    position: absolute; 
    top: 50px;  
    left: 50px;
    animation: springIn 1s linear 1s 1 none;
    -webkit-animation: springIn 1s linear 1s 1 none;
}