.text-animation {
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #d2d2d2;
  color: transparent;
  transition: all 0.5s;
  position: relative;
}

.text-animation::before {
  content: attr(data-text);
  position: absolute;
  color: #010066;
  width: 0px;
  overflow: hidden;
  animation: animated-text 3s ease-in 1 forwards;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #010066;
  white-space: nowrap;
  display: inline-block;
}

@keyframes animated-text {
   0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
