Hero

Rotating Word Hero

A hero where one word in the headline cycles through a list: «We build landing pages / catalogues / dashboards» with no markup from scratch. The swap runs on a CSS animation, no JavaScript.

What you can change

  • the eyebrow, prefix and suffix copy the headline is built from
  • the words array — the list of swapping words, from two to six
  • the lede, and the labels and hrefs of the primary and secondary buttons

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/hero-017?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

A server component, one file, zero dependencies. The --vibeui-hero-017-* palette, and the theme comes from the surrounding color-scheme through light-dark(); there is no backdrop by default — the block sits on the page background. The swapping word lives in data-part="rotator": every variant sits in the same grid cell (grid-area: 1/1), so the container sizes itself to the widest variant and the width never jumps on a swap — no JS measurement needed. Each word gets an animation-delay equal to its index times the cycle length, negated: this offsets the phases so exactly one word is visible at any moment, and the infinite loop needs no state class. The rotator is aria-hidden, with a visually-hidden comma-separated list of the words next to it — otherwise a screen reader would read out every variant in a row, since opacity does not remove text from the accessibility tree. Under prefers-reduced-motion the animation stops and the first word stays visible.

Tags

  • hero
  • rotating-text
  • typography
  • saas
  • landing
  • animated
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…