-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
84 lines (71 loc) · 1.35 KB
/
app.vue
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<script setup lang="ts">
import { ConfigProvider } from 'radix-vue';
const useIdFunction = () => useId();
</script>
<template>
<ConfigProvider :use-id="useIdFunction">
<ClientOnly>
<Toaster position="top-center" rich-colors />
</ClientOnly>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</ConfigProvider>
</template>
<style>
.slide-left-enter-active,
.slide-left-leave-active,
.slide-right-enter-active,
.slide-right-leave-active {
transition: all 0.15s;
}
.slide-left-enter-from,
.slide-left-leave-to {
opacity: 0;
transform: translate(100px, 0);
}
.slide-right-enter-from,
.slide-right-leave-to {
opacity: 0;
transform: translate(-100px, 0);
}
.slide-up-enter-active,
.slide-up-leave-active,
.slide-down-enter-active,
.slide-down-leave-active {
transition: all 0.1s;
}
.slide-up-leave-to,
.slide-up-enter-from {
opacity: 0;
transform: translate(0, -100px);
}
.slide-down-leave-to,
.slide-down-enter-from {
opacity: 0;
transform: translate(0, 100px);
}
.fade-enter-active,
.fade-leave-active {
transition: all 0.3s;
}
.fade-leave-to,
.fade-enter-from {
opacity: 0;
}
/* List animation */
.list-move,
.list-enter-active,
.list-leave-active {
transition: all 0.3s ease;
width: 100%;
}
.list-enter-from,
.list-leave-to {
opacity: 0;
transform: translateX(30px);
}
.list-leave-active {
position: absolute;
}
</style>