Skip to content

Commit d8a03c0

Browse files
authored
Make the submenu tranistion-out faster (#2088)
1 parent fb78be4 commit d8a03c0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.changeset/green-houses-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@theguild/components": patch
3+
---
4+
5+
Make the submenu tranistion-out faster

packages/components/src/components/hive-navigation/navigation-menu.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ export const NavigationMenuContent = forwardRef<
9292
<NavigationMenuPrimitive.Content
9393
ref={ref}
9494
className={cn(
95-
'absolute left-0 top-0 w-auto bg-white data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 dark:bg-neutral-900 [&>:first-child]:p-6',
95+
'absolute left-0 top-0 w-auto bg-white data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=to-]:![animation-duration:250ms] data-[motion^=from-]:![animation-duration:450ms] dark:bg-neutral-900 [&>:first-child]:p-6',
9696
className,
9797
)}
9898
{...rest}
99-
style={{
100-
animationDuration: '0.4s',
101-
...rest.style,
102-
}}
10399
/>
104100
));
105101
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;

0 commit comments

Comments
 (0)