# react-animated-modal

> Animated React Modal with 40 animations using CSSTransition and Animate.css.

Latest version **1.1.1** (published 2018-07-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-animated-modal
pnpm add react-animated-modal
yarn add react-animated-modal
bun add react-animated-modal
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-07-28 |
| First published | 2018-07-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/react-animated-modal) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 325.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Aditya Singh |
| Maintainers | morfsys |
| Keywords | animated, react, modal, with, animations, reactjs |

## Links

- npm: https://www.npmjs.com/package/react-animated-modal
- Repository: https://github.com/morfsys/react-animated-modal
- Homepage: https://github.com/morfsys/react-animated-modal#readme
- Issues: https://github.com/morfsys/react-animated-modal/issues
- npm.io page: https://npm.io/package/react-animated-modal

## Dependencies (1)

- [react-transition-group](https://npm.io/package/react-transition-group.md) ^2.4.0

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-07-28
- 1.1.0 — 2018-07-28
- 1.0.33 — 2018-07-27
- 1.0.32 — 2018-07-27
- 1.0.31 — 2018-07-27
- 1.0.30 — 2018-07-27
- 1.0.29 — 2018-07-27
- 1.0.28 — 2018-07-27
- 1.0.27 — 2018-07-27
- 1.0.26 — 2018-07-27
- 1.0.24 — 2018-07-27
- 1.0.23 — 2018-07-27
- 1.0.22 — 2018-07-27
- 1.0.21 — 2018-07-27
- 1.0.20 — 2018-07-27
- … 20 more at https://npm.io/package/react-animated-modal/versions

## README

# Demo

<img src="https://media.giphy.com/media/vgzAAKFQ6F45pfG4dU/giphy.gif" width="300" />

# Installation:

```javascript
npm install --save react-animated-modal
```

# Usage

```javascript
import React from "react";
import Modal from "react-animated-modal";

export default class App extends React.Component {
    state = {
        showModal: false
    };
    render() {
        return (
            <div>
                <Modal
                    visible={this.state.showModal}
                    closemodal={() => this.setState({ showModal: false })}
                    type="flipInX"
                >
                    Some text or JSX inside modal goes here...
                </Modal>
                <div onClick={() => this.setState({ showModal: true })}>
                    Open Modal
                </div>
            </div>
        );
    }
}
```

# Accepted props

| Prop name               | Type     | Accepted values                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ----------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| closemodal() (required) | function | --                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| visible (required)      | boolean  | true / false                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| type                    | enum     | pulse, rubberBand, shake, swing, tada, wobble, jello, bounceIn, bounceInDown, bounceInLeft, bounceInRight, bounceInUp, fadeIn, fadeInDown, fadeInLeft, fadeInRight, fadeInUp, flip, flipInX, flipInY, lightSpeedIn, rotateIn, rotateInDownLeft, rotateInDownRight, rotateInUpLeft, rotateInUpRight, slideInUp, slideInDown, slideInLeft, slideInRight, zoomIn, zoomInDown, zoomInLeft, zoomInRight, zoomInUp, hinge, jackInTheBox, rollIn, bounce, flash |

I will be adding more props soon.
All PRs are welcome!

Cheers!!!

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