# react-facebook-loading

> The Facebook loading animation for React

Latest version **0.6.2** (published 2017-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-facebook-loading
pnpm add react-facebook-loading
yarn add react-facebook-loading
bun add react-facebook-loading
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.2 |
| Published | 2017-10-06 |
| First published | 2016-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Cheton Wu |
| Maintainers | cheton |
| Keywords | react, react-facebook-loading, facebook, loading, animation, css3 |

## Links

- npm: https://www.npmjs.com/package/react-facebook-loading
- Repository: https://github.com/cheton/react-facebook-loading
- Issues: https://github.com/cheton/react-facebook-loading/issues
- npm.io page: https://npm.io/package/react-facebook-loading

## Dependencies (2)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.6.2 (latest) — 2017-10-06
- 0.6.1 — 2017-04-20
- 0.6.0 — 2016-12-21
- 0.5.1 — 2016-12-20
- 0.5.0 — 2016-12-20

## README

# react-facebook-loading [![build status](https://travis-ci.org/cheton/react-facebook-loading.svg?branch=master)](https://travis-ci.org/cheton/react-facebook-loading) [![Coverage Status](https://coveralls.io/repos/github/cheton/react-facebook-loading/badge.svg?branch=master)](https://coveralls.io/github/cheton/react-facebook-loading?branch=master)

[![NPM](https://nodei.co/npm/react-facebook-loading.png?downloads=true&stars=true)](https://nodei.co/npm/react-facebook-loading/)

The [Facebook loading animation](https://css-tricks.com/the-facebook-loading-animation-in-css) for React.

Demo: https://cheton.github.io/react-facebook-loading

## Installation

1. Install the latest version of [react](https://github.com/facebook/react) and [react-facebook-loading](https://github.com/cheton/react-facebook-loading):

  ```
  npm install --save react react-facebook-loading
  ```

2. At this point you can import `react-facebook-loading` and its styles in your application as follows:

  ```js
  import FacebookLoading from 'react-facebook-loading';

  // Be sure to include styles at some point, probably during your bootstraping
  import 'react-facebook-loading/dist/react-facebook-loading.css';
  ```

## Usage

```js
<FacebookLoading
    delay={0}
    duration={800}
    zoom={1}
    style={{ margin: '0 auto' }}
/>
```


## API

### Properties

<table>
  <thead>
    <tr>
      <th align="left">Name</th>
      <th align="left">Type</th>
      <th align="left">Default</th>
      <th align="left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>delay</td>
      <td>Number|String</td>
      <td>0</td>
      <td>Specify a delay for the start of an animation. The value is defined in seconds (s) or milliseconds (ms). If you specify a number, rather than a regular string, it will use <b>ms</b> as the unit.</td>
    <tr>
      <td>duration</td>
      <td>Number|String</td>
      <td>800</td>
      <td>Specify how long an animation takes to complete one cycle. The value is defined in seconds (s) or milliseconds (ms). If you specify a number, rather than a regular string, it will use <b>ms</b> as the unit.</td>
    </tr>
    <tr>
      <td>zoom</td>
      <td>Number</td>
      <td>1</td>
      <td>Specify the zoom level of the content.</td>
    </tr>
  </tbody>
</table>

## License

MIT

---
_Source: https://npm.io/package/react-facebook-loading · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
