Skip to content

Commit

Permalink
Fix menu lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluesmile82 committed Oct 14, 2024
1 parent 5c70e04 commit ed577c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/menu-lines/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import { cn } from '@/lib/utils';
import { AnimatePresence, motion, stagger } from 'framer-motion';
import { AnimatePresence, motion } from 'framer-motion';
import { createPortal } from 'react-dom';

type MenuLinesProps = {
colorClass?: string;
Expand All @@ -16,8 +17,8 @@ const MenuLines = ({
const initialX = screenWidth - 470;
return <>
<AnimatePresence>
<div className='menu-vertical-lines container absolute inset-0 w-full h-full pointer-events-none'>
<motion.div className={cn('w-full h-full absolute inset-0 z-10',
<div className='menu-vertical-lines container fixed inset-0 w-full h-full pointer-events-none z-50'>
<motion.div className={cn('w-full h-full absolute inset-0',
verticalClassName)}
>
{
Expand All @@ -36,4 +37,4 @@ const MenuLines = ({
</>
};

export default MenuLines;
export default (props: MenuLinesProps) => createPortal(<MenuLines {...props} />, document.body);

0 comments on commit ed577c1

Please sign in to comment.