Skip to content

stanleygu/spinners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Spinners

##Usage

Add the spinners module to your app:

angular.module('myApp', ['stanleygu.spinners']);

Invoke the directives with the desired attributes

<spinner template="{{type}}" color="{{color}}" screen-color="{{screenColor}}" screen-opacity="{{screenOpacity}}" 
loading="{{loading}}" z-index="200"></spinner>

template is a string containing one of 7 different spinner types:

[
  'chasingDots',
  'doubleBounce',
  'pulse',
  'rectangleBounce',
  'rotatePlane',
  'threeBounce',
  'wanderingCubes'
];

loading is a boolean that turns on and off the spinner.

color and screen-color are CSS color names for the spinner color and background screen color, respectively.

opacity is a number from 0-1 for the screen opacity.

z-index is the z-index of the spinner.

Releases

No releases published

Packages

No packages published