Replies: 3 comments 2 replies
-
As far as I can see the answer is no. I've tried everything and this question has remained unanswered. I went with react-spring instead which I really didn't want to have to do but I cannot spend any more time trying to get HeadlessUI to work in this instance. |
Beta Was this translation helpful? Give feedback.
-
I've been trying to figure this out myself. You need something to intercept, perform the leave transition, then handle the route. So it can handle the transitions before the route occurs. I found the below post and hope to utilize it with headlessui transitions. He uses green sock for his page animations/transitions. https://dutzi.party/animating-route-transitions-using-react-router/ |
Beta Was this translation helpful? Give feedback.
-
It would be awesome if we could use the For example in something like Next.js:
So everytime |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm hoping for a bit of help here if possible. Is it possible to use the HeadlessUI transitions with route? I cannot get a component to transition out when loading the next component with route. I basically have a page appear from the right and fill the screen. Then when a button is clicked the page should disappear off to the left and the next page should load in from the right at the same time, the next page slightly overlapping the previous page as they both transition. I can do this quite easily using state changes etc but when it comes to wrapping the components in a route with a path I cannot for the life of me solve the puzzle. The enter transition works but the leave transition just will not work and the component vanishes. Presumably the component is unloaded before the leave transition gets to play. So how do I prevent the component from being unloaded until after the leave transition has played out?
I would really appreciate any help on this as it's been a very long week trying to solve these transitions. Can it actually be done?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions