Text Rotate

Animated word cycling effect for hero sections and taglines. Supports fade, slide, flip, zoom, and color highlights.

This component requires softui.js for interactive behavior.

Fade

We build beautiful modern stunning elegant products.

<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  We build
  <span class="sui-text-rotate sui-text-rotate-fade" data-sui-text-rotate data-interval="2000">
    <span class="sui-text-rotate-word">beautiful</span>
    <span class="sui-text-rotate-word">modern</span>
    <span class="sui-text-rotate-word">stunning</span>
    <span class="sui-text-rotate-word">elegant</span>
  </span>
  products.
</p>

Slide Up

Built for developers designers startups teams

<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  Built for
  <span class="sui-text-rotate sui-text-rotate-slide" data-sui-text-rotate data-interval="2500">
    <span class="sui-text-rotate-word">developers</span>
    <span class="sui-text-rotate-word">designers</span>
    <span class="sui-text-rotate-word">startups</span>
    <span class="sui-text-rotate-word">teams</span>
  </span>
</p>

Slide Down

Ship faster better smarter with SoftUI.

<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  Ship
  <span class="sui-text-rotate sui-text-rotate-slide-down" data-sui-text-rotate data-interval="2000">
    <span class="sui-text-rotate-word">faster</span>
    <span class="sui-text-rotate-word">better</span>
    <span class="sui-text-rotate-word">smarter</span>
  </span>
  with SoftUI.
</p>

Flip

Your app deserves neumorphic beautiful tactile soft design.

<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  Your app deserves
  <span class="sui-text-rotate sui-text-rotate-flip" data-sui-text-rotate data-interval="2000">
    <span class="sui-text-rotate-word">neumorphic</span>
    <span class="sui-text-rotate-word">beautiful</span>
    <span class="sui-text-rotate-word">tactile</span>
    <span class="sui-text-rotate-word">soft</span>
  </span>
  design.
</p>

Zoom

Made with passion precision purpose

<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  Made with
  <span class="sui-text-rotate sui-text-rotate-zoom" data-sui-text-rotate data-interval="1800">
    <span class="sui-text-rotate-word">passion</span>
    <span class="sui-text-rotate-word">precision</span>
    <span class="sui-text-rotate-word">purpose</span>
  </span>
</p>

With Colors

SoftUI is powerful flexible lightweight

Status: online healthy running

Try it with React Vue Svelte vanilla JS

<!-- Colors: sui-text-rotate-primary, sui-text-rotate-success, sui-text-rotate-danger, sui-text-rotate-warning, sui-text-rotate-info -->
<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  SoftUI is
  <span class="sui-text-rotate sui-text-rotate-slide sui-text-rotate-primary" data-sui-text-rotate data-interval="2000">
    <span class="sui-text-rotate-word">powerful</span>
    <span class="sui-text-rotate-word">flexible</span>
    <span class="sui-text-rotate-word">lightweight</span>
  </span>
</p>
<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  Status:
  <span class="sui-text-rotate sui-text-rotate-fade sui-text-rotate-success" data-sui-text-rotate data-interval="3000">
    <span class="sui-text-rotate-word">online</span>
    <span class="sui-text-rotate-word">healthy</span>
    <span class="sui-text-rotate-word">running</span>
  </span>
</p>
<p style="font-size:20px;font-weight:600;color:var(--sui-text);">
  Try it with
  <span class="sui-text-rotate sui-text-rotate-flip sui-text-rotate-danger" data-sui-text-rotate data-interval="2500">
    <span class="sui-text-rotate-word">React</span>
    <span class="sui-text-rotate-word">Vue</span>
    <span class="sui-text-rotate-word">Svelte</span>
    <span class="sui-text-rotate-word">vanilla JS</span>
  </span>
</p>

Reserve Space

Add data-reserve to hold the width of the longest word.

Made for designers developers you — and this text never moves.

<p style="font-size:24px;font-weight:700;color:var(--sui-text);">
  Made for
  <span class="sui-text-rotate sui-text-rotate-slide sui-text-rotate-primary" data-sui-text-rotate data-reserve data-interval="2000" data-sr-text="designers and developers">
    <span class="sui-text-rotate-word">designers</span>
    <span class="sui-text-rotate-word">developers</span>
    <span class="sui-text-rotate-word">you</span>
  </span>
  — and this text never moves.
</p>

<!-- data-reserve: width of the longest word, so nothing after it shifts -->
<!-- data-sr-text: what screen readers hear (default: the words, comma-separated) -->

Reference

Attribute / SettingDescription
data-intervalMilliseconds between words (default 2000).
data-reserveHolds the width of the longest word so the text after it does not move.
data-sr-textWhat screen readers hear (default: the words once, as a list).
prefers-reduced-motionThe first word stays put.

Delete this item?

This action cannot be undone. This will permanently delete the item and remove all associated data.