JSFiddle - React, Tailwind, and code Playground

by Bastien Leprince

HTML

<div id="square">
</div>

CSS

#square{
  width: 200px;
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  -webkit-animation: out 4200ms forwards;
  -moz-animation: out 4200ms forwards;
  -o-animation:out 4200ms forwards;
  animation:out 4200ms forwards;
      -webkit-animation-delay: 2s;
    animation-delay: 2s;
}

@-webkit-keyframes out {
  0%   {  width: 200px;
  height: 200px;
  -webkit-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.28);
-moz-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.28);
box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.28);}
  100% {  width: 240px;
  height: 240px; 
  -webkit-box-shadow: 0px 0px 45px -1px rgba(0,0,0,0.28);
  -moz-box-shadow: 0px 0px 45px -1px rgba(0,0,0,0.28);
  box-shadow: 0px 0px 45px -1px rgba(0,0,0,0.28); 
  }
}