-
While fiddling around with the fabulous remix and checking the "must-be-solved" checkboxes for our agencys workflow i came to page transitions with react-motion (or anything else). Is there any solution for transitions between routes? The AnimatePresence thing from react-motion has no effect if used like all the tutorials describe it. Anybody got any guidance on this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
Just to add a little more context to the tweet, provided by @hollandThomas You can use the |
Beta Was this translation helpful? Give feedback.
Just to add a little more context to the tweet, provided by @hollandThomas
You can use the
useOutlet
-Hook from React Router (docs). For convenience, you can directly import it from Remix, but the documentation lives at React Router. When you navigate with<Link/>
, Remix handles navigation by replacing the children. You can get the current outlet withuseOutlet
and wrap it in an animation component. (e.g. Framers AnimatePresence