Skip to content

Commit

Permalink
fix: header spring transition
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Sep 14, 2023
1 parent e0d2219 commit b246808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/layout/header/internal/MenuPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Link from 'next/link'
import type { IHeaderMenu } from '../config'

import { FloatPopover } from '~/components/ui/float-popover'
import { microDampingPreset } from '~/constants/spring'
import { softSpringPreset } from '~/constants/spring'
import { clsxm } from '~/lib/helper'

export const MenuPopover: Component<{
Expand Down Expand Up @@ -68,7 +68,7 @@ const Item = memo(function Item(
{isEnter && (
<m.span
layoutId={currentId}
transition={microDampingPreset}
transition={softSpringPreset}
className={clsxm(
'absolute bottom-0 left-0 right-2 top-0 z-[-1] rounded-md',
'bg-zinc-50 dark:bg-neutral-900',
Expand Down

1 comment on commit b246808

@vercel
Copy link

@vercel vercel bot commented on b246808 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

innei.in
shiro-innei.vercel.app
shiro-git-main-innei.vercel.app
springtide.vercel.app

Please sign in to comment.