react-flip-box
v1.0.5
Published
React Flip box
Downloads
9
Readme
react-flip-box
React Flip Box
Install:
- yarn add react-flip-box
- npm i react-flip-box
Usage:
import * as Ripple from "react-flip-box"
...
const handleFlip = (flipped: boolean) => {
console.log("flipped = ", flipped)
}
...
<FlipBox
style={{background: "white"}}
className="flip-box"
first={<p>First Screen</p>}
second={<p>Second Screen</p>}
time={500}
onChange={handleFlip}
flipped={false}
stop={false}
/>