realyze / meteor-spin

A simple spinner package for Meteor

Home Page:https://atmospherejs.com/sacha/spin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Meteor package wrapper for Spin.js via Npm.depends().


Install

meteor add sacha:spin

Usage

Simply add the spinner to your app as you would with any other template:

{{> spinner}}

Additionally, you can configure the spinner by setting the Meteor.Spinner.options object.

Meteor.Spinner.options = {
    lines: 13, // The number of lines to draw
    length: 10, // The length of each line
    width: 5, // The line thickness
    radius: 15, // The radius of the inner circle
    corners: 0.7, // Corner roundness (0..1)
    rotate: 0, // The rotation offset
    direction: 1, // 1: clockwise, -1: counterclockwise
    color: '#fff', // #rgb or #rrggbb
    speed: 1, // Rounds per second
    trail: 60, // Afterglow percentage
    shadow: true, // Whether to render a shadow
    hwaccel: false, // Whether to use hardware acceleration
    className: 'spinner', // The CSS class to assign to the spinner
    zIndex: 2e9, // The z-index (defaults to 2000000000)
    top: 'auto', // Top position relative to parent in px
    left: 'auto' // Left position relative to parent in px
};

About

A simple spinner package for Meteor

https://atmospherejs.com/sacha/spin


Languages

Language:JavaScript 91.2%Language:CSS 4.4%Language:HTML 4.4%