Skip to content

Commit c10c0cb

Browse files
committed
fix: menu animation
1 parent 590c15e commit c10c0cb

File tree

1 file changed

+5
-7
lines changed
  • example/storybook-nativewind/src/core-components/nativewind/menu

1 file changed

+5
-7
lines changed

example/storybook-nativewind/src/core-components/nativewind/menu/index.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,19 @@ const Menu = React.forwardRef(
119119
ref={ref}
120120
initial={{
121121
opacity: 0,
122+
scale: 0.8,
122123
}}
123124
animate={{
124125
opacity: 1,
126+
scale: 1,
125127
}}
126128
exit={{
127129
opacity: 0,
130+
scale: 0.8,
128131
}}
129132
transition={{
130-
type: 'spring',
131-
damping: 18,
132-
stiffness: 250,
133-
opacity: {
134-
type: 'timing',
135-
duration: 200,
136-
},
133+
type: 'timing',
134+
duration: 100,
137135
}}
138136
className={menuStyle({
139137
class: className,

0 commit comments

Comments
 (0)