Text Rotate can show up to 6 lines of text, one at a time, with a an infinite loop animation. Duration is 10 seconds by default. The animation will pause on hover.

Class name
Type
text-rotate
Component
Wrapper for texts

Text Rotate

Rotates through 3 words, in 10 seconds
ONE TWO THREE
<span class="$$text-rotate">
  <span>
    <span>ONE</span>
    <span>TWO</span>
    <span>THREE</span>
  </span>
</span>
<span class="$$text-rotate">
  <span>
    <span>ONE</span>
    <span>TWO</span>
    <span>THREE</span>
  </span>
</span>

Rotating 6 words

Big font size, horizontally centered
DESIGN DEVELOP DEPLOY SCALE MAINTAIN REPEAT
<span class="$$text-rotate text-7xl">
  <span class="justify-items-center">
    <span>DESIGN</span>
    <span>DEVELOP</span>
    <span>DEPLOY</span>
    <span>SCALE</span>
    <span>MAINTAIN</span>
    <span>REPEAT</span>
  </span>
</span>
<span class="$$text-rotate text-7xl">
  <span class="justify-items-center">
    <span>DESIGN</span>
    <span>DEVELOP</span>
    <span>DEPLOY</span>
    <span>SCALE</span>
    <span>MAINTAIN</span>
    <span>REPEAT</span>
  </span>
</span>

Rotating words in a sentence

Different colors for each word
Providing AI Agents for Designers Developers Managers
<span>
  Providing AI Agents for 
  <span class="$$text-rotate">
    <span>
      <span class="bg-teal-400 text-teal-800 px-2">Designers</span>
      <span class="bg-red-400 text-red-800 px-2">Developers</span>
      <span class="bg-blue-400 text-blue-800 px-2">Managers</span>
    </span>
  </span>
</span>
<span>
  Providing AI Agents for 
  <span class="$$text-rotate">
    <span>
      <span class="bg-teal-400 text-teal-800 px-2">Designers</span>
      <span class="bg-red-400 text-red-800 px-2">Developers</span>
      <span class="bg-blue-400 text-blue-800 px-2">Managers</span>
    </span>
  </span>
</span>

Rotating 3 words with custom duration

Big font size, horizontally centered, 6 seconds duration instead of 10 seconds
BLAZING FAST ▶︎▶︎
<span class="$$text-rotate text-7xl duration-6000">
  <span class="justify-items-center">
  <span>BLAZING</span>
  <span class="font-bold italic px-2">FAST ▶︎▶︎</span>
  </span>
</span>
<span class="$$text-rotate text-7xl duration-6000">
  <span class="justify-items-center">
  <span>BLAZING</span>
  <span class="font-bold italic px-2">FAST ▶︎▶︎</span>
  </span>
</span>

Custom line height

In case you have a tall font or need more vertical spacing between lines
📐 DESIGN ⌨️ DEVELOP 🌎 DEPLOY 🌱 SCALE 🔧 MAINTAIN ♻️ REPEAT
<span class="$$text-rotate text-7xl leading-[2]">
  <span class="justify-items-center">
    <span>📐 DESIGN</span>
    <span>⌨️ DEVELOP</span>
    <span>🌎 DEPLOY</span>
    <span>🌱 SCALE</span>
    <span>🔧 MAINTAIN</span>
    <span>♻️ REPEAT</span>
  </span>
</span>
<span class="$$text-rotate text-7xl leading-[2]">
  <span class="justify-items-center">
    <span>📐 DESIGN</span>
    <span>⌨️ DEVELOP</span>
    <span>🌎 DEPLOY</span>
    <span>🌱 SCALE</span>
    <span>🔧 MAINTAIN</span>
    <span>♻️ REPEAT</span>
  </span>
</span>
Do you have a question? Ask on GitHub or Discord server
Do you see a bug? open an issue on GitHub
Do you like daisyUI? Post about it!
Support daisyUI's development: Open Collective
daisyUI store

NEXUS
Official daisyUI Dashboard Template

Available on daisyUI store

More details