ayrozjlc/yii2-counterup AssetBundle for jQuery Counter-Up Plugin https://github.com/NawaraGFX/Counter-Up

Yii2 Counter-Up

  1. Installation
  2. Usage

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>
0 0
1 follower
590 downloads
Yii Version: 2.0
License: BSD-3-Clause
Category: User Interface
Developed by: José lópez Chávez
Created on: Aug 14, 2018
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions