A typewriter component that cycles through text with a synced flashing highlight animation.
pnpm dlx shadcn@latest add https://atlasui.dev/r/typewriter-html.json
Define a <p> tag with class typewriter in your HTML file.
<p>
typewriter
<p class="typewriter"></p>
Define an array of strings in your script.js file.
script.js
const textArray = [ "Building pixels with purpose", "Shipping faster than deadlines", "Deploy now, panic later!", "...", ];
letterDelay
number
0.025
boxFadeDuration
0.125
textFadeOutDuration
0.25
delayBetween
5500
On This Page
Contribute