I am trying to make a typing animation. I found a tutorial to do it but I am curious what is the purpose of the data-rotate and data-period attribute show in the span tag.
<span
className="font-mono text-3xl sm:text-4xl text-gray-100"
data-period="1000"
data-rotate='[ "Web Developer", "Web Designer", "UI/UX Designer" ]'
>
<span className="flex-wrap">{text}</span>
<span className="box-border inline-block w-1 h-12 -mb-2 bg-gray-500 opacity-75 animate-cursor"></span>
</span>