7 Replies
i'd put this in #front-end (unless someone said to put it here, but this looks like a frontend post to me)
motion elements need a unique key prop to animate presence.
amazing! I tried it, issue fixed! but now it triggers another issue
try adding mode='wait' in the AnimatePresence component. It looks like both sides are rendered at the same time for a moment.
amazing again! there is a little pause (empty space) before the back-card starts flipping, any idea?