-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.vue
More file actions
53 lines (45 loc) · 1.04 KB
/
app.vue
File metadata and controls
53 lines (45 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<template>
<Transition name="layout" mode="out-in">
<NuxtLayout>
<Transition name="page" mode="out-in">
<NuxtPage />
</Transition>
</NuxtLayout>
</Transition>
</template>
<style>
/* Page transitions */
.page-enter-active,
.page-leave-active {
transition: opacity 0.2s ease;
}
.page-enter-active .container:not(.nav-container),
.page-leave-active .container:not(.nav-container) {
transition: all 0.2s ease;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
}
.page-enter-from .container:not(.nav-container),
.page-leave-to .container:not(.nav-container) {
transform: scale(0.98);
}
/* Layout transitions */
.layout-enter-active,
.layout-leave-active {
transition: opacity 0.2s ease;
}
.layout-enter-active .container:not(.nav-container),
.layout-leave-active .container:not(.nav-container) {
transition: all 0.2s ease;
}
.layout-enter-from,
.layout-leave-to {
opacity: 0;
}
.layout-enter-from .container:not(.nav-container),
.layout-leave-to .container:not(.nav-container) {
transform: scale(0.98);
}
</style>