You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying some of the examples and it seems that Framer Motion exit animations are not playing on the with-framer-motion example. Next.js has this problem as well. One of the workarounds found by the community is this one. I was wondering if the issue in Router could be solved by doing something similar 🤔
Maybe transitioning between pages with AnimatePresence is not worth the hassle? In Next.js there's also this library which intercepts navigations by using a custom Link component and useRouter hook. It plays an animation before commiting the navigation. This method doesn't work when using the browser's back and forwards buttons tho, but maybe that's more of a Next.js limitation
Which project does this relate to?
Router
Describe the bug
Hello! Loving the library so far! 😄
I was trying some of the examples and it seems that Framer Motion exit animations are not playing on the
with-framer-motion
example. Next.js has this problem as well. One of the workarounds found by the community is this one. I was wondering if the issue in Router could be solved by doing something similar 🤔Maybe transitioning between pages with
AnimatePresence
is not worth the hassle? In Next.js there's also this library which intercepts navigations by using a customLink
component anduseRouter
hook. It plays an animation before commiting the navigation. This method doesn't work when using the browser's back and forwards buttons tho, but maybe that's more of a Next.js limitationYour Example Website or App
https://stackblitz.com/github/tanstack/router/tree/main/examples/react/with-framer-motion?embed=1&theme=dark&preset=node&file=src/main.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
It should unmount after playing the exit animation
Screenshots or Videos
Screen.Recording.2024-10-24.at.18.03.40.yafw.balanced.mp4
Platform
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: