Remove page fade in transition
This commit is contained in:
parent
62794623a3
commit
f7cacd2b73
1 changed files with 10 additions and 10 deletions
|
@ -7,23 +7,23 @@ interface AnimatedPageProps {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
const variants = {
|
// const variants = {
|
||||||
animate: { opacity: 1 },
|
// animate: { opacity: 1 },
|
||||||
exit: { opacity: 0 },
|
// exit: { opacity: 0 },
|
||||||
initial: { opacity: 0 },
|
// initial: { opacity: 0 },
|
||||||
};
|
// };
|
||||||
|
|
||||||
export const AnimatedPage = forwardRef(
|
export const AnimatedPage = forwardRef(
|
||||||
({ children }: AnimatedPageProps, ref: Ref<HTMLDivElement>) => {
|
({ children }: AnimatedPageProps, ref: Ref<HTMLDivElement>) => {
|
||||||
return (
|
return (
|
||||||
<motion.main
|
<motion.main
|
||||||
ref={ref}
|
ref={ref}
|
||||||
animate="animate"
|
// animate="animate"
|
||||||
className={styles.animatedPage}
|
className={styles.animatedPage}
|
||||||
exit="exit"
|
// exit="exit"
|
||||||
initial="initial"
|
// initial="initial"
|
||||||
transition={{ duration: 0.3, ease: 'easeIn' }}
|
// transition={{ duration: 0.3, ease: 'easeIn' }}
|
||||||
variants={variants}
|
// variants={variants}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</motion.main>
|
</motion.main>
|
||||||
|
|
Reference in a new issue