Blocks

Counter Block

2 min read

> Animated number counters that count up when scrolled into view.


Overview

The Counter block displays key metrics and statistics with animated counting effects. Numbers smoothly animate from zero to their target value when visitors scroll the block into view, creating an engaging way to highlight impressive figures.


Fields

FieldDescription
HeadingOptional section title above the counters
SubheadingSupporting text below the heading
CountersRepeatable counter items
ColumnsGrid layout: 2, 3, or 4 columns
StyleVisual style: Default, Cards, or Minimal
Number ColorAccent color for the numbers
DurationAnimation duration in milliseconds
Content WidthControl the maximum width of the content area
AnimationEntrance animation with optional stagger effect

Counter Fields

Each counter includes:

FieldDescription
ValueThe target number to count to (required)
PrefixText or symbol before the number (e.g., "$")
SuffixText or symbol after the number (e.g., "+", "%")
LabelShort label below the number (required)
DescriptionOptional longer description text

Style Options

StyleDescription
DefaultClean counters with subtle styling
CardsEach counter in its own card container
MinimalSimple, borderless appearance

Color Options

Numbers can use any DaisyUI theme color:

  • Primary
  • Secondary
  • Accent
  • Neutral
  • Info
  • Success
  • Warning
  • Error

Tips

  • Keep counter values reasonable (extremely large numbers may lose impact)
  • Use prefixes and suffixes to add context ("$", "K", "+", "%")
  • Stagger animation creates a cascading effect across counters
  • Animation duration of 2000ms (2 seconds) works well for most cases

Examples

Choose Theme