=== Animated Stats Counter Block ===
Contributors: snehalpancholi
Tags: counter, stats, number, animate, gutenberg, block
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A Gutenberg block showing a number that counts up to a target value when scrolled into view.

== Description ==

Animated Stats Counter Block adds a native Gutenberg block for showcasing metrics on your website. The number animates from zero to its target using an ease-out animation triggered by IntersectionObserver when the block enters the viewport.

**Features:**
* Target value with optional prefix and suffix (e.g. $1,000+)
* Optional descriptive label below the number
* Configurable animation duration (200ms – 5000ms)
* Thousands separator toggle
* Decimal precision control (0–4 places)
* Custom number colour
* IntersectionObserver for scroll-triggered animation — plays once
* PHP server-side render — static value shown if JS unavailable

== Installation ==

1. Upload `animated-stats-counter` to `/wp-content/plugins/`.
2. Activate via the Plugins screen.
3. Insert the **Animated Stats Counter** block.
4. Configure value, prefix, suffix, label, colour in Inspector Controls.

== Frequently Asked Questions ==

= Does the animation replay on every scroll? =
No. It plays once when the block first enters the viewport, then stops.

= Can I display a decimal like 4.8? =
Yes. Set Decimals to 1 and Target Value to 4.8.

== Changelog ==

= 1.0.0 =
* Initial release.
