Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanyan/halogen
A collection of loading spinners with React.js
https://github.com/yuanyan/halogen
Last synced: 1 day ago
JSON representation
A collection of loading spinners with React.js
- Host: GitHub
- URL: https://github.com/yuanyan/halogen
- Owner: yuanyan
- License: mit
- Created: 2015-03-25T14:54:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T10:52:17.000Z (11 months ago)
- Last Synced: 2024-11-11T18:11:40.663Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://yuanyan.github.io/halogen
- Size: 1.51 MB
- Stars: 1,599
- Watchers: 20
- Forks: 151
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-components-all - halogen - A collection of loading spinners with React.js. (Uncategorized / Uncategorized)
- awesome-loading-indicators - Halogen - A collection of loading spinners with React.js. (JavaScript)
- awesome-list - halogen - A collection of loading spinners with React.js. (Demos / Loader)
README
Halogen [![npm version](https://badge.fury.io/js/halogen.svg)](http://badge.fury.io/js/halogen)
=======[![Pair on this](https://tf-assets-staging.s3.amazonaws.com/badges/thinkful_repo_badge.svg)](http://start.thinkful.com/react/?utm_source=github&utm_medium=badge&utm_campaign=halogen)
A collection of loading spinners with React.js.
* React 0.14+ Use `halogen 0.2`
* React 0.12+ Use `halogen 0.1`## Demo & Examples
Live demo: [yuanyan.github.io/halogen](http://yuanyan.github.io/halogen/)
To build the examples locally, run:
```
npm install
gulp dev
```Then open [`localhost:9999`](http://localhost:9999) in a browser.
## Installation
The easiest way to use `halogen` is to install it from NPM and include it in your own React build process (using [Browserify](http://browserify.org), etc).
You can also use the standalone build by including `dist/halogen.js` in your page. If you use this, make sure you have already included React, and it is available as a global variable.
```
npm install halogen --save
```## Usage
```javascript
var Loader = require('halogen/PulseLoader');
var Example = React.createClass({
render: function() {
return (
);
}
});
```## Loaders
* PulseLoader
* RotateLoader
* BeatLoader
* RiseLoader
* SyncLoader
* GridLoader
* ClipLoader
* FadeLoader
* ScaleLoader
* SquareLoader
* PacmanLoader
* SkewLoader
* RingLoader
* MoonLoader
* DotLoader
* BounceLoader## Browser Support
![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)
--- | --- | --- | --- | --- |
IE 10+ ✔ | Chrome 4.0+ ✔ | Firefox 16.0+ ✔ | Opera 15.0+ ✔ | Safari 4.0+ ✔ |