@@ -56,12 +56,12 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
56
56
} ;
57
57
58
58
const itemVariants = {
59
- /**
60
- * Returns an object with the CSS properties for a closed animation.
61
- *
62
- * @param {number } i - The index of the item being animated.
63
- * @return {Object } An object with CSS properties for the closed animation.
64
- */
59
+ /**
60
+ * Returns an object with the CSS properties for a closed animation.
61
+ *
62
+ * @param {number } i - The index of the item being animated.
63
+ * @return {Object } An object with CSS properties for the closed animation.
64
+ */
65
65
closed : ( i : number ) => ( {
66
66
x : i % 2 === 0 ? "-100%" : "100%" ,
67
67
opacity : 0 ,
@@ -72,19 +72,19 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
72
72
duration : 0.15 ,
73
73
} ,
74
74
} ) ,
75
- /**
76
- * Returns an object representing the animation properties for opening an item.
77
- *
78
- * @param {number } i - The index of the item.
79
- * @return {object } An object with the following properties:
80
- * - x: The x-coordinate of the item.
81
- * - opacity: The opacity of the item.
82
- * - transition: An object representing the animation properties.
83
- * - type: The type of the animation.
84
- * - stiffness: The stiffness of the animation.
85
- * - damping: The damping of the animation.
86
- * - delay: The delay of the animation.
87
- */
75
+ /**
76
+ * Returns an object representing the animation properties for opening an item.
77
+ *
78
+ * @param {number } i - The index of the item.
79
+ * @return {object } An object with the following properties:
80
+ * - x: The x-coordinate of the item.
81
+ * - opacity: The opacity of the item.
82
+ * - transition: An object representing the animation properties.
83
+ * - type: The type of the animation.
84
+ * - stiffness: The stiffness of the animation.
85
+ * - damping: The damping of the animation.
86
+ * - delay: The delay of the animation.
87
+ */
88
88
open : ( i : number ) => ( {
89
89
x : 0 ,
90
90
opacity : 1 ,
@@ -111,7 +111,7 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
111
111
data-testid = "mobile-menu"
112
112
data-cy = "mobile-menu"
113
113
aria-hidden = { ! isExpanded }
114
- className = "fixed top-0 right-0 w-screen h-screen bg-gray-800 flex items-center justify-center -z-10"
114
+ className = "fixed top-0 right-0 w-screen h-screen bg-gray-800 flex items-center justify-center -z-10 -mt-4 "
115
115
initial = "closed"
116
116
animate = "open"
117
117
exit = "closed"
0 commit comments