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

https://github.com/mthaip/tw-epic-spinners

A TailwindCSS Plugin of Epic Spinners.
https://github.com/mthaip/tw-epic-spinners

animation-css css javascript loading-animations loading-screen loading-spinner reactjs spinners tailwindcss tailwindcss-plugin tailwindcss-ui vuejs

Last synced: 21 days ago
JSON representation

A TailwindCSS Plugin of Epic Spinners.

Awesome Lists containing this project

README

        

# Tailwind CSS Epic Spinners

This library is the Tailwind CSS Plugin of [epic-spinners](http://epic-spinners.epicmax.co/) by [EpicMax](https://github.com/epicmaxco/epic-spinners)

## Installation

```bash
npm install --save-dev tw-epic-spinners

# Or use Yarn

yarn add -D tw-epic-spinners
```

## Demo

An online demo is available [here](https://tw-epic-spinners.mthaip.com)

## Usage

Add the Plug-In in your `tailwind.config.ts`:

```javascript
import spinners from 'tw-epic-spinners';

export default {
// Other configs
plugins: [spinners],
};
```

## How to use

### Spinners

- `spinner-flower`

```html






```

- `spinner-pixel`

```html


```

- `spinner-hollow-dots`

```html






```

- `spinner-intersecting-circles`

```html












```

- `spinner-orbit`

```html






```

- `spinner-radar`

```html















```

- `spinner-scaling-squares`

```html







```

- `spinner-half-circle`

```html


```

- `spinner-trinity-rings`

```html






```

- `spinner-fulfilling-square`

```html


```

- `spinner-circles-to-rhombuses`

```html






```

- `spinner-semipolar`

```html








```

- `spinner-self-building-square`

```html












```

- `spinner-swapping-squares`

```html







```

- `spinner-fulfilling-bouncing-circle`

```html


```

- `spinner-fingerprint`

```html












```

- `spinner-spring`

```html





```

- `spinner-atom`

```html








```

- `spinner-looping-rhombuses`

```html






```

- `spinner-breeding-rhombus`

```html











```

### Utility

#### Size

The `spinner-size-*` utility class allows you to quickly define the size of a spinner.

It follows a similar pattern to [Tailwind CSS spacing](https://tailwindcss.com/docs/theme#spacing) utilities.

```html


```

Using arbitrary values:

```html


```

#### Duration

The `spinner-duration-*` utility class allows you control the duration.

It follows also a similar pattern to [Tailwind CSS Transition duration](https://tailwindcss.com/docs/transition-duration) utilities.

```html


```

Using arbitrary values:

```html


```

#### Color

Color can be controlled by [Tailwind CSS Text Color utility](https://tailwindcss.com/docs/text-color).

```html


```

## License

[MIT](./LICENSE) License