From 43ff2dfe2e3bdb49e0a5adcc84783f8c3fcca997 Mon Sep 17 00:00:00 2001 From: fwcd Date: Thu, 29 Feb 2024 03:27:18 +0100 Subject: [PATCH] Fix perspective attribute --- src/ReactCardFlip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReactCardFlip.tsx b/src/ReactCardFlip.tsx index d574cef..ecfa700 100644 --- a/src/ReactCardFlip.tsx +++ b/src/ReactCardFlip.tsx @@ -87,11 +87,11 @@ const ReactCardFlip: React.FC = (props) => { ...back, }, container: { - perspective: '1000px', zIndex: `${cardZIndex}`, }, flipper: { height: '100%', + perspective: '1000px', position: 'relative', width: '100%', },