How do I add page transitions with Inertia and vue? #810
Unanswered
ApolloDevs
asked this question in
Help (Vue)
Replies: 2 comments
-
@ApolloDevs Try to wrap your slot with a Vue transition, e.g. <transition name="fade" mode="out-in" appear>
<slot />
</transition> CSS for Vue 3 .fade-enter-active,
.fade-leave-active {
@apply transition-opacity;
}
.fade-enter-from,
.fade-leave-to {
@apply opacity-0;
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have attempted a few examples that I have found online but sadly I haven't really got anywhere. I'm using the Laravel adapter with InertiaJS and Vue and TailwindCSS.
Say I have the following layout -
How would I make the items inside the slot transition when selecting a new page from the sidebar? I've tried the class with CSS in a <style> tag in the component but no transitions take place. (with wrapped around the slot!) Looking for a basic example to get me off the ground!
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions