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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Count Up”, insert it. Category: Effects.
- Configure inspector controls that exist on this block. Open Counter Settings. Set “Target Number”, “Prefix”, “Suffix”, “Thousands Separator”.
- 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
| Control | What the code does |
|---|---|
| Target Number | Text field in the inspector. block.json default: 1000. Saved as `value`. |
| Prefix | Text field in the inspector. Saved as `prefix`. |
| Suffix | Text field in the inspector. block.json default: +. Saved as `suffix`. |
| Thousands Separator | Select 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 Places | Numeric 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 Icon | On/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 Label | On/off toggle in the inspector. On by default. Saved as `showLabel`. |
| Label Text | Text field in the inspector. block.json default: Happy Clients. Saved as `label`. |
| Value | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoValue`. |
| Label | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoLabel`. |
| Text Align | Select control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `textAlign`. |
| Value Color | Color control in the inspector. block.json default: #7c3aed. Saved as `valueColor`. |
| Label Color | Color control in the inspector. block.json default: #374151. Saved as `labelColor`. |
| Icon Color | Color control in the inspector. block.json default: #7c3aed. Saved as `iconColor`. |
| Colors — Background | Color 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
- The view script reads HTML data attributes: data-opts.
- An IntersectionObserver starts work when the block enters the viewport.
When this is the right block
- Animated number counter that counts up when scrolled into view — that is the job of Count Up, not a generic content block.
- Use it when you need the editor control labeled “Target Number”, which exists on this block’s inspector.
- Inserter grouping: motion, overlays, and visual treatments.
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
3D Text
Eye-catching 3D extruded text using CSS text-shadow layers and perspective transforms. Supports rotate-on-hover, float animation, and customizable depth, colors and typography.
Animated Text
Heading with animated cycling words — typewriter, fade, slide, or flip effects. Perfect for hero sections.
Card Carousel
Horizontal drag-to-scroll card carousel with rich cards, autoplay, arrows, dots, and responsive column settings.
Card Deck Slider
A 3D card deck slider where cards arc/fan out behind the front card and animate through the sequence.
Card Stack
A fanned or stacked pile of cards with hover-spread interaction. Perfect for testimonials, case studies, or feature highlights.
Confetti Button
A call-to-action button that triggers a burst of canvas confetti particles on click. Supports multiple confetti styles, custom colors, particle physics and link/action settings.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Count Up from the Gutenberg inserter.