An open API service indexing awesome lists of open source software.

https://github.com/welksonramos/loading.css

:hourglass_flowing_sand: Tiny loaders and spinners made with only css and one div
https://github.com/welksonramos/loading.css

animations css loaders spinners stylus

Last synced: 9 months ago
JSON representation

:hourglass_flowing_sand: Tiny loaders and spinners made with only css and one div

Awesome Lists containing this project

README

          

# loading.css
[![npm](https://img.shields.io/npm/v/loading-css.svg)](https://www.npmjs.com/package/loading-css) [![Build Status](https://travis-ci.org/welksonramos/loading.css.svg?branch=master)](https://travis-ci.org/welksonramos/loading.css) [![install size](https://packagephobia.now.sh/badge?p=loading-css@0.2.0)](https://packagephobia.now.sh/result?p=loading-css@0.2.0)
[![GitHub license](https://img.shields.io/github/license/welksonramos/loading.css.svg)](https://github.com/welksonramos/loading.css/blob/master/LICENSE)

> ⌛️ Tiny loaders and spinners made with only css and one div
[See demo](https://welksonramos.github.io/loading.css/)

## Install
### Fork this repo

```
$ git clone https://github.com/welksonramos/loading.css.git
```
### NPM

```
$ npm install loading-css --save
```
### Manually
Download `loading.css` or `loading.min.css` from this repo and add it to your HTML.

## Usage

1. Include the stylesheet on your document's ``

```html

```
or

```html

```

2. Add the `loading` class followed by the appropriate [class name](#loading-style-classes) of for the spinner.

Example:
```html


````
## Loading style classes

- `ldgBalls`
- `ldgBar`
- `ldgBattery`
- `ldgDualRing`
- `ldgFlip`
- `ldgHourglass`
- `ldgRing`
- `ldgSignal`
- `ldgSquare`

## 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 dev

```

# License

Licensed under the [MIT License](LICENSE)