Velocity X Components

Carousels & Tickers

Announcement Bar Rotator

Top-of-page rotating announcement bar with dot indicators and a session-persistent dismiss control, vanilla JS only.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add announcement-bar-rotator

Built for astro.

Full docs for Announcement Bar Rotator →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.0
Announcement Bar Rotator
Free shipping on orders over $100

Props

NameTypeRequiredDefaultDescription
messagesAnnouncementMessage[]Yes
intervalnumberNo5000
dismissiblebooleanNotrue
storageKeystringNo'v-announcement-dismissed'

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/announcement-bar-rotator/AnnouncementBarRotator.astro

Using the Announcement Bar Rotator component

Install it with velocityx add announcement-bar-rotator. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Carousels & Tickers.