UNPKG

1.11 kBMarkdownView Raw
1react-spinkit
2=============
3
4A collection of loading indicators animated with CSS for React
5
6Currently I've ported all the spinner animations from
7[Spinkit](https://github.com/tobiasahlin/SpinKit). If you have other favorite
8 css spinner you'd like to include, open an issue.
9
10## CSS
11If you use [Webpack](http://webpack.github.io) and the
12[css-loader](https://github.com/webpack/css-loader) to build your project, then the
13css for each spinner is automatically required (by adding `cssRequire` as a prop).
14
15Otherwise, you'll need to include the necessary css for each spinner you
16use from `/css`.
17
18## Fade in spinners after one second
19According to [research by Jakob Nielsen](http://www.nngroup.com/articles/response-times-3-important-limits/), feedback after operations aren't
20needed for about a second. You can set your spinner to only appear after
21a second by adding the `fadeIn` prop e.g. `<Spinner
22spinnerName='three-bounce' fadeIn />`
23
24This requires `./css/fade-in.css` to be included either automatically
25with Webpack or manually.
26
27
28## Demo and documentation
29http://kyleamathews.github.io/react-spinkit/