CSS - Tin Right In Effect

by Rodwyn Moreno

HTML

<div class="tinRightIn">

</div>

CSS

div {
  background: #61A6AB;
  border-radius: 2px;
  height: 100px;
  width: 100px;
}

.tinRightIn {
  animation: tinRightIn 1s forwards;
}

@keyframes tinRightIn {
  0% {
    opacity: 0;
    transform: scale(1,1) translateX(900%);
  }

  50%,
  70%,
  90% {
    opacity: 1;
    transform: scale(1.1,1.1) translateX(0);
  }

  100%,
  60%,
  80% {
    opacity: 1;
    transform: scale(1,1) translateX(0);
  }
}