Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/shuding/shuffle-char

React char shuffling animation.
https://github.com/shuding/shuffle-char

animation char-shuffling react

Last synced: 26 days ago
JSON representation

React char shuffling animation.

Awesome Lists containing this project

README

        

# Char Shuffling for React

![](https://img.shields.io/npm/v/shuffle-char.svg?style=flat)

`npm i shuffle-char -S` or `yarn add shuffle-char`

## Usage

```js
import Shuf from 'shuffle-char'
```

```jsx


Hack(FDU)



150+ teams,
500+ participants


```

## Demo

![screenshot](screenshot.gif)

## API

Props supported:
- `on`: boolean,
If `true` the animation will keep running, else it will display the default value.
- `charset`: string,
`'a-z'` / `'A-Z'` / `'0-9'` + any characters. e.g. `'a-zA-Z_'` includes all alphabets and underscore.
- `escape`: string,
Characters excluded from the `charset` above. e.g. `charset='a-z'` and `escape='x'` includes all lowercase letters exclude `x`.
- `idle`: number,
The animation interval in ms.

## License

The MIT license.