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
THREECustom 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
DEPLOYLarge Hero Style #
For a dramatic hero section effect:
{{< text-rotate size="text-7xl" >}}
BUILD
SHIP
SCALE
REPEAT
{{< /text-rotate >}}
BUILD
SHIP
SCALE
REPEATUp 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
REPEATCustom 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
TEXTColor Variants #
Different color options:
SECONDARY COLOR ACCENT COLOR SUCCESS COLOR ERROR COLOR