.animation{
    animation-duration: 0.5s;
    animation-name: slidein;
  }
  
  @keyframes slidein {
    from {
      margin-left: 100%;
      width: 30%;
    }
  
    to {
      margin-left: 0%;
      width: 100%;
    }
  }