Nextjs 13 - Has anyone been able to get route transitions (entry and exit transition) to work with framer-motion?

Hi,

I'm a Gatsby developer, testing Nextjs 13 for the first time.

In Gatsby I can achieve route transitions (including exit transitions) using framer-motion 's AnimatePresence component. But I can't achieve the same result with Next. I can get entry transitions to work but not the exit transitions.

Any pointers would be much appreciated.

Thanks,

B