jquery-circliful

ar-shestopal
js Styles
jquery-circliful JS library on GitHub jquery-circliful JS library on npm Download jquery-circliful JS library

npm package for jquery-plugin-circliful

Version 0.1.1 License MIT
jquery-circliful has no homepage
jquery-circliful JS library on GitHub
jquery-circliful JS library on npm
Download jquery-circliful JS library

jquery-circliful

An npm package for jQuery circle statistic plugin.

Exmples: https://jsfiddle.net/9dajqcr1/

Install

npm install jquery-circliful

Setup

require('jquery-circliful')(window, $);

Or include ./js/jquery.circliful.js to your scrip.

Add stylesheets from ./css to your Site.

How to use

Add an element to your Site with a unique id and an "container" around it that controls the size of your circle statistic, here a example with bootstrap:

    <div class="row">
        <div class="col-lg-2">
            <div id="test-circle"></div>
        </div>
    </div>

Add this code at the end of your site

    <script>
        $( document ).ready(function() {
        $("#your-circle").circliful({
                    animationStep: 5,
                    foregroundBorderWidth: 5,
                    backgroundBorderWidth: 15,
                    percent: 75
               });
       });
    </script>

More information on plugins repository: https://github.com/pguso/jquery-plugin-circliful