0.2.0 • Published 7 years ago
loading-css v0.2.0
loading.css
⌛️ Tiny loaders and spinners made with only css and one div See demo
Install
Fork this repo
$ git clone https://github.com/welksonramos/loading.css.gitNPM
$ npm install loading-css --saveManually
Download loading.css or loading.min.css from this repo and add it to your HTML.
Usage
- Include the stylesheet on your document's
<head>
<link rel="stylesheet" href="/path/to/loading.css">or
<link rel="stylesheet" href="/path/to/loading.min.css">- Add the
loadingclass followed by the appropriate class name of for the spinner.
Example:
<div class="loading ldgRing"></div>Loading style classes
ldgBallsldgBarldgBatteryldgDualRingldgFlipldgHourglassldgRingldgSignalldgSquare
File Structure
loading.css/
|-- docs // Examples
| |-- index.html
| |-- loading.css
| |-- loading.min.css
|
|-- src/ // Source Stylus files
| |-- _efects/
| | |-- _balls.styl
| | |-- _bar.styl
| | |-- ...
| |-- base.styl
| |-- loading.styl
|
|-- loading.css
|-- loading.min.css
|-- package.json
|-- ...Tasks
$ npm run build
$ npm run minify
$ npm run devLicense
Licensed under the MIT License