# react-easy-transitions

> test

Latest version **1.1.1** (published 2022-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-easy-transitions
pnpm add react-easy-transitions
yarn add react-easy-transitions
bun add react-easy-transitions
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2022-04-01 |
| First published | 2022-04-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | cooksoundscapes |
| Maintainers | cooksoundscapes |

## Links

- npm: https://www.npmjs.com/package/react-easy-transitions
- npm.io page: https://npm.io/package/react-easy-transitions

## Recent versions

- 1.1.1 (latest) — 2022-04-01
- 1.1.0 — 2022-04-01
- 1.0.10 — 2022-04-01
- 1.0.9 — 2022-04-01
- 1.0.8 — 2022-04-01
- 1.0.7 — 2022-04-01
- 1.0.6 — 2022-04-01
- 1.0.5 — 2022-04-01
- 1.0.4 — 2022-04-01
- 1.0.3 — 2022-04-01
- 1.0.2 — 2022-04-01
- 1.0.1 — 2022-04-01

## README

# React Transitions

Low verbose, JSX tags that provides transitions for a single object while it's mounting and unmounting. 

Right now its uses the Hooks API and works with functional components.

The ready-to-use transitions are:

* Fade;
* Scale;
* SlideLeft;
* SlideRight;
  
Install with:
```
npm install react-easy-transitions
```
Or
```
yarn add react-easy-transitions
```
Import to you project with
```
import Animation from 'react-easy-transitions'
```
And use it like:
```
const [visible, setVisible] = useState(false) 

<Animation.Fade controller={visible}>
    <MyObject />
</Animation.Fade>
```
Also, you can customize the animation, passing the duration, a CSS class for the mount and another for the unmount, like so:
```
<Animation.Custom 
    controller={someStatefulVariable}
    time={200}
    animIn={"slideLeft"}
    animOut={"slideRight"}
>
    <SomeCoolObject />
</Animation.Custom>
```

\* Please note that the Animation will not work with already animated components, though it will be fixed in a near future.

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