ayrozjlc / yii2-counterup
AssetBundle for jQuery Counter-Up Plugin https://github.com/NawaraGFX/Counter-Up
Package info
github.com/ayrozjlc/yii2-counterup
Type:yii2-extension
pkg:composer/ayrozjlc/yii2-counterup
v0.1
2016-10-25 05:56 UTC
Requires
- bower-asset/counterup: *
- yiisoft/yii2: 2.0.*
This package is auto-updated.
Last update: 2026-03-01 00:22:38 UTC
README
AssetBundle for jQuery Counter-Up Plugin https://github.com/NawaraGFX/Counter-Up
Installation
####Composer
composer require --prefer-dist "ayrozjlc/yii2-counterup:*"
or add
"ayrozjlc/yii2-counterup": "dev-master"
to the require section of your composer.json file.
Usage
in view (for example: @app/views/layouts/main.php)
// ... use ayrozjlc\counterup\CounterUpAsset; // ... CounterUpAsset::register($this);
or add to your assets/AppAsset.php
public $depends = [ // ... '\ayrozjlc\counterup\CounterUpAsset', ];
Add the class "counter" to the number that will be given the animation:
<span class="counter"> 1000 </ span>