A dynamic counter module for Joomla 5 that displays animated statistics with customizable formatting.
- Smooth Animations: Number counting with easing effects
- Flexible Formatting:
- Thousands (K) and Millions (M) suffixes
- Optional "+" sign suffix
- Localized number formatting (e.g., 1,000 vs 1.000)
- Smart Triggering: Animation starts when visible in viewport
- Responsive Design: Works on all screen sizes
- Easy Configuration:
- Set target values, labels, and suffixes per counter
- Control animation duration
- Lightweight: Pure CSS/JS without external dependencies
- Download the latest release ZIP file
- In your Joomla admin:
- Go to System → Install → Extensions
- Upload the package file
- Add the module to a position via Content → Site Modules
| Parameter | Description | Default |
|---|---|---|
| Animation Speed | Duration in milliseconds | 2000 |
| Columns Layout | Number of counters per row (1-4) | 4 |
Configure each counter with:
- Target Value: The number to count up to
- Label: Description text below the number
- Suffix: None, K (thousands), or M (millions)
- Plus Sign: Optionally display "+" after the number
<!-- With suffix and plus sign -->
<div class="counter" data-target="2500" data-suffix="k" data-plus="true">2.5k+</div>
<!-- With million suffix -->
<div class="counter" data-target="3500000" data-suffix="m">3.5m</div>
<!-- Plain number with plus -->
<div class="counter" data-target="99" data-plus="true">99+</div>Override these in your template's CSS:
:root {
--counter-font-size: 3rem;
--counter-color: #333;
--counter-label-color: #666;
--counter-plus-color: inherit;
}Hook into animation lifecycle:
document.addEventListener('counterAnimationStart', (e) => {
console.log('Animation started for:', e.target);
});
document.addEventListener('counterAnimationEnd', (e) => {
console.log('Animation completed for:', e.target);
});- Joomla 5.x
- PHP 8.0+
- Browser with JavaScript support
- Clone repository
- Run
npm install(for SCSS compilation) - Make changes in
/srcdirectory - Run
npm run buildto generate production files
This project is released under the GNU GPL v2 or later.
Developed & maintained by Digitest.net.
Inspired by open web standards and Joomla community best practices.
- Joomla Documentation
- Module Development Guide
- GitHub Issues (for bug reports)
Note: For support questions, please open an issue or contact the maintainer directly.