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

https://github.com/wildhoney/reactdelayed

Small component for delaying the mounting and unmounting of a child component for CSS animation purposes.
https://github.com/wildhoney/reactdelayed

css-animations defer deferred delay delayed mount mounting react render timeout unmount unmounting wait

Last synced: 16 days ago
JSON representation

Small component for delaying the mounting and unmounting of a child component for CSS animation purposes.

Awesome Lists containing this project

README

          

# React Delayed

> Small component for delaying the mounting and unmounting of a child component for CSS animation purposes.

![Travis](http://img.shields.io/travis/Wildhoney/ReactDelayed.svg?style=flat-square)
 
![Coveralls](https://img.shields.io/coveralls/Wildhoney/ReactDelayed.svg?style=flat-square)
 
![npm](http://img.shields.io/npm/v/react-delayed.svg?style=flat-square)
 
![License MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat-square)

* **npm**: `npm i react-delayed --save`
* **Heroku**: [http://react-delayed.herokuapp.com/](http://react-delayed.herokuapp.com/)

---

## Getting Started

Use the optional `mountAfter` and `unmountAfter` props for delaying the mounting and unmounting of nested components.

```javascript

Nyan

```

When `mounted` is `false` a dummy node will be rendered, which defaults to `span` and can be changed with the `nodeName` prop.

You're also able to pass a *thunk* as the `children` for truly deferred components.

```javascript

{() => Nyan}

```