Nincompoops Producing Methane
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    spinner-componentpublic

    Spinner

    Flexible spinner using canvas.

    js spinner component

    Installation

    $ component install godmodelabs/spinner
    $ npm install spinner-component

    Example

    var Spinner = require('spinner');
     
    var spinner = new Spinner;
    document.body.appendChild(spinner.el);

    API

    Spinner#font(family)

    Change the font to family.

    Spinner#fontSize(n)

    Change the font size to n.

    Spinner#size(n)

    Change the indicator diameter to n, defaults to 50.

    Spinner#speed(n)

    Change the speed to n rpm, defaults to 60.

    License

    MIT

    Keywords

    none

    install

    npm i spinner-component

    Downloadsweekly downloads

    4

    version

    0.0.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar