ham3r/yii2-spinkit

SpinKit asset for Yii2 framework (https://github.com/tobiasahlin/SpinKit)

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2018-04-25 16:30 UTC

This package is not auto-updated.

Last update: 2024-06-14 03:45:24 UTC


README

Allows to use SpinKit (https://github.com/tobiasahlin/SpinKit) CSS library inside Yii2 framework environment.

Installation

Use Composer to install this extension. Bower dependencies used by this asset will be automatically installed.

composer require ham3r/yii2-spinkit:dev-master

Usage

Register directly onto the view:

use ham3r\spinkit\SpinKitAsset;

SpinKitAsset::register($this);

Or use as another asset dependency:

use yii\web\AssetBundle;

class SomeAsset extends AssetBundle {

    /** dependencies */
    public $depends = [
        'ham3r\spinkit\SpinKitAsset'
    ];
    
    ...
}
    

Then you can use CSS classes defined by this library:

<div class="sk-rotating-plane"></div>

License

Project is licensed under MIT. Please see License File for more information.