Effects · Gutenberg

Count Up block for WordPress

Animated number counter that counts up when scrolled into view.

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

Animated number counter that counts up when scrolled into view.

Inspector panels on this block: Counter Settings, Icon & Label, Layout. Those titles come from index.js, not from a shared template.

Behavior controls: “Thousands Separator” options: Comma (1,000), Period (1.000), None (1000); “Text Align” options: Left, Center, Right.

Where to find it

Gutenberg inserter → Effects → search “Count Up” (block name `blockenberg/count-up` in block.json). Style it in the sidebar after insert.

How to use Count Up block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Count Up”, insert it. Category: Effects.
  3. Configure inspector controls that exist on this block. Open Counter Settings. Set “Target Number”, “Prefix”, “Suffix”, “Thousands Separator”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Target NumberText field in the inspector. block.json default: 1000. Saved as `value`.
PrefixText field in the inspector. Saved as `prefix`.
SuffixText field in the inspector. block.json default: +. Saved as `suffix`.
Thousands SeparatorSelect control; the chosen value is saved on the block. Options: Comma (1,000); Period (1.000); None (1000). block.json default: ,. Saved as `separator`.
Decimal PlacesNumeric range control in the inspector. Range 0–4. block.json default: 0. Saved as `decimals`.
Animation Duration (ms)Numeric range control in the inspector. Range 500–5000. block.json default: 2000. Saved as `duration`.
Show IconOn/off toggle in the inspector. On by default. Saved as `showIcon`.
Icon (emoji or text)Text field in the inspector. block.json default: 😊. Saved as `icon`.
Icon Size (px)Numeric range control in the inspector. Range 16–100. block.json default: 40. Saved as `iconSize`.
Show LabelOn/off toggle in the inspector. On by default. Saved as `showLabel`.
Label TextText field in the inspector. block.json default: Happy Clients. Saved as `label`.
ValueShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoValue`.
LabelShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoLabel`.
Text AlignSelect control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `textAlign`.
Value ColorColor control in the inspector. block.json default: #7c3aed. Saved as `valueColor`.
Label ColorColor control in the inspector. block.json default: #374151. Saved as `labelColor`.
Icon ColorColor control in the inspector. block.json default: #7c3aed. Saved as `iconColor`.
Colors — BackgroundColor control in the inspector. Saved as `bgColor`.
Max Width (px)Numeric range control in the inspector. Range 200–900. block.json default: 360. Saved as `maxWidth`.
Padding Top (px)Numeric range control in the inspector. Range 0–200. block.json default: 48. Saved as `paddingTop`.
Padding Bottom (px)Numeric range control in the inspector. Range 0–200. block.json default: 48. Saved as `paddingBottom`.

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 Count Up block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Count Up”. It sits under Effects. After insert, open Counter Settings and set “Target Number”, “Prefix”, “Suffix”, “Thousands Separator”.

What makes Count Up different from other Blockenberg blocks?

Animated number counter that counts up when scrolled into view. Inspector labels on this block include “Target Number”, “Prefix”, “Suffix”, “Thousands Separator”.

Is the Count Up Gutenberg block free?

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

Can I style Count Up 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: Counter Settings, Icon & Label, Layout).

Related effects blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Count Up from the Gutenberg inserter.

Get Blockenberg