-
Notifications
You must be signed in to change notification settings - Fork 0
/
animations.ts
73 lines (68 loc) · 1.07 KB
/
animations.ts
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
export const arrowVariants = {
open: { rotate: 0 },
closed: { rotate: 180 },
};
export const menuVariants = {
enter: {
opacity: 1,
y: 0,
display: "block",
},
exit: {
y: -50,
opacity: 0,
transition: {
duration: 0.3,
},
transitionEnd: {
display: "none",
},
},
};
export const dropDownVariants = {
enter: {
opacity: 1,
top: 50,
display: "block",
},
exit: {
top: 0,
opacity: 0,
transition: {
duration: 0.3,
},
transitionEnd: {
display: "none",
},
},
};
export const ModalParentVariants = {
enter: {
opacity: 1,
transition: {
duration: 0.1,
},
display: "block",
},
exit: { opacity: 0, transitionEnd: { display: "none" } },
};
export const accordionVariants = {
open: {
opacity: 1,
height: "auto",
transitionEnd: { display: "block" },
},
closed: {
opacity: 0,
height: 0,
transitionEnd: { display: "none" },
},
};
export const PanelVariants = {
shrink: {
padding: "10px",
},
grow: {
padding: "50px",
},
};