Create a slide-in text or element CSS Animation with just CSS.

p {
  animation-duration: 3s;
  animation-name: slidein;
}

@keyframes slidein {
  from {
    margin-left: 100%;
    width: 300%;
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}

My slide in text

See the Pen
Untitled
by Devtutorials4u (@devtutorial4u)
on CodePen.