We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72de968 commit 65b3241Copy full SHA for 65b3241
src/ReactCardFlip.tsx
@@ -17,7 +17,7 @@ const ReactCardFlip: React.FC<ReactFlipCardProps> = (props) => {
17
flipSpeedBackToFront,
18
infinite,
19
isFlipped,
20
- } = {
+ } = {
21
cardStyles: {
22
back: {},
23
front: {},
@@ -31,7 +31,7 @@ const ReactCardFlip: React.FC<ReactFlipCardProps> = (props) => {
31
isFlipped: false,
32
...props
33
}
34
-
+
35
const [isFlippedState, setFlipped] = useState(isFlipped);
36
const [rotation, setRotation] = useState(0);
37
@@ -84,6 +84,7 @@ const ReactCardFlip: React.FC<ReactFlipCardProps> = (props) => {
84
transformStyle: 'preserve-3d',
85
transition: `${flipSpeedFrontToBack}s`,
86
width: '100%',
87
+ zIndex: isFlipped ? '2' : '1',
88
...back,
89
},
90
container: {
0 commit comments