diff --git a/components/PublicGrid.tsx b/components/PublicGrid.tsx index ec73500..0fe0d78 100644 --- a/components/PublicGrid.tsx +++ b/components/PublicGrid.tsx @@ -473,14 +473,14 @@ function FlipBook({ pages, onClose }: { pages: string[]; onClose: () => void }) if (flipping !== null || spread >= totalSpreads - 1) return; playFlipSound(getCtx()); setFlipping('forward'); - window.setTimeout(() => { setSpread(s => s + 1); setFlipping(null); }, 650); + window.setTimeout(() => { setSpread(s => s + 1); setFlipping(null); }, 750); }, [flipping, spread, totalSpreads]); const goPrev = useCallback(() => { if (flipping !== null || spread <= 0) return; playFlipSound(getCtx()); setFlipping('backward'); - window.setTimeout(() => { setSpread(s => s - 1); setFlipping(null); }, 650); + window.setTimeout(() => { setSpread(s => s - 1); setFlipping(null); }, 750); }, [flipping, spread]); useEffect(() => { @@ -526,6 +526,8 @@ function FlipBook({ pages, onClose }: { pages: string[]; onClose: () => void }) void }) style={{ transformOrigin: 'left center', transformStyle: 'preserve-3d', - animation: 'flipBookForward 650ms ease-in-out forwards', + animation: 'flipBookForward 750ms cubic-bezier(0.4, 0.0, 0.35, 1) forwards', + filter: 'drop-shadow(0 10px 18px rgba(0,0,0,0.55))', zIndex: 20, }} > {getPage(rightIdx) && } + {getPage(nextLeftIdx) && } + )} @@ -603,15 +614,24 @@ function FlipBook({ pages, onClose }: { pages: string[]; onClose: () => void }) style={{ transformOrigin: 'right center', transformStyle: 'preserve-3d', - animation: 'flipBookBackward 650ms ease-in-out forwards', + animation: 'flipBookBackward 750ms cubic-bezier(0.4, 0.0, 0.35, 1) forwards', + filter: 'drop-shadow(0 10px 18px rgba(0,0,0,0.55))', zIndex: 20, }} > {getPage(leftIdx) && } + {getPage(prevRightIdx) && } + )}