1.1.1 • Published 8 years ago
react-animated-modal v1.1.1
Demo
Installation:
npm install --save react-animated-modalUsage
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!!!
1.1.1
8 years ago
1.1.0
8 years ago
1.0.33
8 years ago
1.0.32
8 years ago
1.0.31
8 years ago
1.0.30
8 years ago
1.0.29
8 years ago
1.0.28
8 years ago
1.0.27
8 years ago
1.0.26
8 years ago
1.0.24
8 years ago
1.0.23
8 years ago
1.0.22
8 years ago
1.0.21
8 years ago
1.0.20
8 years ago
1.0.19
8 years ago
1.0.18
8 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago