Skip to main content

Rotating Text

Shiloh
Shiloh
1 min read

The text-rotate shortcode displays text that rotates through a list of words with an infinite loop animation. It’s great for hero sections, taglines, or adding visual interest to your content.

Basic Usage #

Use the text-rotate shortcode with one word per line:

{{< text-rotate >}}
ONE
TWO
THREE
{{< /text-rotate >}}
ONE TWO THREE

Custom Size #

The default size is text-xl. Use the size parameter to change it:

{{< text-rotate size="text-5xl" >}}
DESIGN
DEVELOP
DEPLOY
{{< /text-rotate >}}
DESIGN DEVELOP DEPLOY

Large Hero Style #

For a dramatic hero section effect:

{{< text-rotate size="text-7xl" >}}
BUILD
SHIP
SCALE
REPEAT
{{< /text-rotate >}}
BUILD SHIP SCALE REPEAT

Up to 6 Items #

The animation supports up to 6 rotating items:

{{< text-rotate size="text-3xl" >}}
DESIGN
DEVELOP
DEPLOY
SCALE
MAINTAIN
REPEAT
{{< /text-rotate >}}
DESIGN DEVELOP DEPLOY SCALE MAINTAIN REPEAT

Custom Color #

Use the color parameter to apply a text color class:

{{< text-rotate size="text-4xl" color="text-primary" >}}
PRIMARY
COLORED
TEXT
{{< /text-rotate >}}
PRIMARY COLORED TEXT

Color Variants #

Different color options:

SECONDARY COLOR ACCENT COLOR SUCCESS COLOR ERROR COLOR
Shiloh
Author
Shiloh - A Happy Dog

Built with Tailwind CSS v4 and daisyUI v5