Effects · Gutenberg

Rotating Banner block for WordPress

A multi-message announcement carousel that auto-rotates between messages. Each message can have its own colors, link, and optional countdown timer.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

A multi-message announcement carousel that auto-rotates between messages. Each message can have its own colors, link, and optional countdown timer.

Inspector panels on this block: Messages, Rotation & Behaviour, Appearance, Navigation Colors. Those titles come from index.js, not from a shared template.

Behavior controls: “Link Target” options: Same tab, New tab; “Animation” options: Slide, Fade; “Link Style” options: Inline underline, Pill button, No link.

Where to find it

Gutenberg inserter → Effects → search “Rotating Banner” (block name `blockenberg/rotating-banner` in block.json). Style it in the sidebar after insert.

How to use Rotating Banner block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Rotating Banner”, insert it. Category: Effects.
  3. Configure inspector controls that exist on this block. Open Messages. Set “Link Label”, “Link URL”, “Link Target”, “Countdown To (ISO date, optional)”.
  4. Check the published page. The view script reads HTML data attributes: data-anim, data-opts, data-rendered, data-uid. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Link LabelText field in the inspector.
Link URLText field in the inspector.
Link TargetSelect control; the chosen value is saved on the block. Options: Same tab; New tab.
Countdown To (ISO date, optional)Text field in the inspector.
Auto-playOn/off toggle in the inspector. On by default. Saved as `autoPlay`.
Interval (ms)Numeric range control in the inspector. Range 1000–15000. block.json default: 5000. Saved as `interval`.
AnimationSelect control; the chosen value is saved on the block. Options: Slide; Fade. block.json default: slide. Saved as `animationType`.
Show ArrowsOn/off toggle in the inspector. On by default. Saved as `showArrows`.
Show Dot IndicatorsOn/off toggle in the inspector. On by default. Saved as `showDots`.
Show Close ButtonOn/off toggle in the inspector. On by default. Saved as `showClose`.
Cookie Dismiss Duration (days)Numeric range control in the inspector. Range 0–365. block.json default: 7. Saved as `cookieDays`.
Banner Height (px)Numeric range control in the inspector. Range 32–120. block.json default: 44. Saved as `height`.
Link StyleSelect control; the chosen value is saved on the block. Options: Inline underline; Pill button; No link. block.json default: inline. Saved as `linkStyle`.
Arrow BackgroundColor control in the inspector. block.json default: rgba(0,0,0,0.15). Saved as `arrowBg`.
Arrow ColorColor control in the inspector. block.json default: #ffffff. Saved as `arrowColor`.
Dot ColorColor control in the inspector. block.json default: rgba(255,255,255,0.4). Saved as `dotColor`.
Active Dot ColorColor control in the inspector. block.json default: #ffffff. Saved as `dotActiveColor`.
Close Button BackgroundColor control in the inspector. block.json default: rgba(0,0,0,0.15). Saved as `closeBg`.
Close Button ColorColor control in the inspector. block.json default: #ffffff. Saved as `closeColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Rotating Banner block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Rotating Banner”. It sits under Effects. After insert, open Messages and set “Link Label”, “Link URL”, “Link Target”, “Countdown To (ISO date, optional)”.

What makes Rotating Banner different from other Blockenberg blocks?

A multi-message announcement carousel that auto-rotates between messages. Each message can have its own colors, link, and optional countdown timer. Inspector labels on this block include “Link Label”, “Link URL”, “Link Target”, “Countdown To (ISO date, optional)”.

Is the Rotating Banner Gutenberg block free?

Yes. Rotating Banner ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Rotating Banner to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Messages, Rotation & Behaviour, Appearance, Navigation Colors).

Related effects blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Rotating Banner from the Gutenberg inserter.

Get Blockenberg