CSS - Tin Down In Effect

by Rodwyn Moreno

HTML

<div class="tinDownIn"></div>

CSS

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

.tinDownIn {
  animation: tinDownIn 1s forwards;
}

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

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

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