JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrapper">
  <div class="text">HELLO WORLD</div>
</div>

CSS

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 24px;
  background-image: linear-gradient(90deg, red, orange);
  min-height: 100vh;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  width: 0;
  overflow: hidden;
  animation: test 2s forwards;
}
.text {
  font-size: 48px;
  width: 350px;
  text-align: center;
  white-space: nowrap;
}

@keyframes test {
  from {
    width: 0;
  }
  to {
    width: 350px;
  }
}