plenta / contao-countup-bundle
This content element counts up numbers.
Installs: 1 823
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 2
Open Issues: 1
Type:contao-bundle
Requires
- php: ^7.4 | ^8.0
- contao/core-bundle: ^4.9
- contao/manager-plugin: ^2.11.0
Requires (Dev)
- contao/news-bundle: ^4.7
- contao/phpstan: ^0.12.9
- contao/test-case: ^4.6.0
- friendsofphp/php-cs-fixer: ^v3.4.0
- phpstan/phpstan: ^0.12.66
- phpstan/phpstan-phpunit: ^0.12.17
- phpstan/phpstan-symfony: ^0.12.7
- phpunit/phpunit: ^8.4.2
- sensiolabs/security-checker: ^6.0.2
- symfony/phpunit-bridge: ^4
README
This Contao content element counts up numbers.
This plugin is based on and utilizes CountUp.js
CSS files are not included (coming soon).
Install using Composer
composer require plenta/contao-countup-bundle
Usage
Simply add the Contao element to your page.
The Contao element accepts the following arguments:
- Start value: number to begin the counter from
- Count up value: number to end the counter at
- Animation duration: time in seconds
- Prefix: text at the beginning the value
- Suffix: text added at the end of the value
- Number grouping: enable grouping of numbers (1,000 vs 1000)
- Decimal places are calculated automatically