Skip to content

Commit

Permalink
remove page transition animation #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Aug 4, 2023
1 parent 7ceaa68 commit 3ef09ac
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions app/template.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import {LazyMotion, AnimatePresence, m} from 'framer-motion';
import {LazyMotion} from 'framer-motion';
import {LocationChangeTracker} from '@/lib/gtag/LocationChangeTracker';
import useDynamicFavicon from '@/lib/dynamicFavicon/useDynamicFavicon';
import TopMenu from '@/components/TopMenu/TopMenu';
Expand All @@ -24,21 +24,7 @@ export default function Template({children}: {children: React.ReactNode}) {
right={50}
/>
<SocialIcons />
<AnimatePresence mode="wait">
<m.div
className="h-full grow flex"
initial={{x: 300, opacity: 0}}
animate={{x: 0, opacity: 1}}
exit={{x: 300, opacity: 0}}
transition={{
type: 'spring',
stiffness: 260,
damping: 20,
}}
>
{children}
</m.div>
</AnimatePresence>
{children}
</LazyMotion>
);
}

0 comments on commit 3ef09ac

Please sign in to comment.