# Animated metric counter

https://fieldbook.lizardi.mx/components/animated-metric-counter

Category: Data display
![Still of the Animated metric counter component, a Fieldbook UI component in Data display.](https://fieldbook.lizardi.mx/thumbs/animated-metric-counter.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/animated-metric-counter-61359df792.mp4 (5 s, silent)

Animated metric counter: A large bare numeral that springs up from a starting value to its target the moment it scrolls into view, overshooting slightly before it settles, with thousands separators and an optional suffix.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| target | number | 48200 | From 0 to 999999; step 1 |
| startValue | number | 0 | From 0 to 999999; step 1 |
| decimals | number | 0 | From 0 to 2; step 1 |
| suffix | text | users | Up to 12 characters |
| accent | color | #9BE15D | No additional limit in the metadata. |

## Usage notes

Animated metric counter uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Animated metric counter?

Animated metric counter is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Animated metric counter depend on?

The React metadata lists these npm dependencies beyond React: motion.

### What accessibility details are visible in Animated metric counter?

The React source for Animated metric counter includes: attributes and handlers (aria-hidden, aria-live). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Animated metric counter handle reduced motion?

Animated metric counter reads the motion preference in its React source through useReducedMotion(). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "animated-metric-counter",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Counting number readout](https://fieldbook.lizardi.mx/components/counting-number-readout)
- [Rolling stat tiles](https://fieldbook.lizardi.mx/components/rolling-stat-tiles)
- [Concentric goal rings](https://fieldbook.lizardi.mx/components/concentric-goal-rings)
- [Spring Push Collapsible](https://fieldbook.lizardi.mx/components/spring-push-collapsible)
- [Visitor Map Card](https://fieldbook.lizardi.mx/components/visitor-map-stat-card)
- [Before/After Code Diff](https://fieldbook.lizardi.mx/components/before-after-code-diff)
