===============
Configurable SpinKit (https://github.com/tobiasahlin/SpinKit) spinners for AngularJS Inspired by angular-spinkit.
See it in action here
-
Install with bower:
bower install ui-spinkit --save
-
Add uiSpinkit.js to your main file (index.html)
<script src="bower_components/ui-spinkit/dist/uiSpinkit.js"></script>
or uiSpinkit.min.js if you don't minify you dependecies within your build anyway:
<script src="bower_components/ui-spinkit/dist/uiSpinkit.min.js"></script>
-
Add
ui-spinkit
as a dependency in your modulevar myapp = angular.module('myapp', ['ui.spinkit'])
-
Add Spinners to markup
<div sk-rotating-plane></div> <div sk-rotating-plane size="60" color="green"></div> <div sk-double-bounce></div> <div sk-double-bounce size="60" color="red"></div> <div sk-wave></div> <div sk-wave width="150" height="75" color="red"></div> <div sk-wandering-cubes></div> <div sk-wandering-cubes color="red"></div> <div sk-pulse></div> <div sk-pulse size="120" color="red"></div> <div sk-chasing-dots></div> <div sk-chasing-dots size="120" color="red"></div> <div sk-three-bounce></div> <div sk-three-bounce width="200" height="40" color="red"></div> <div sk-circle></div> <div sk-circle size="100" color="red"></div> <div sk-cube-grid></div> <div sk-cube-grid size="100" color="red"></div> <div sk-wordpress></div> <div sk-wordpress size="100" color="red"></div> <div sk-fading-circle></div> <div sk-fading-circle size="60" color="#5B760F"></div>
-
Configure Defaults as you require them: Currently there are only two Options:
myapp = angular.module('myapp', ['ui.spinkit']) myapp.config(['$uiSpinkitConfigProvider',function($uiSpinkitConfigProvider){ $uiSpinkitConfigProvider.setDefaultSize(50); $uiSpinkitConfigProvider.setDefaultColor('#000000'); })]
-
Add all your requests / problems / ideas / bug fixes in the issues area or send us a pull request!
##Build Locally
-
Clone it
-
Build it
npm install bower install grunt
-
Check it out Open index.html in a browser
- Add some jasmine tests.
- Add example to JSFiddle.
Add $uiSpinkitConfigProvider to override defaults.Add a funky "RandomSpinner".- Add an "ImageLoaderSpinner" like angular-spinkit.
- Add show/hide callback mechanism