mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
adjust page animation transition
This commit is contained in:
@@ -14,7 +14,11 @@ interface AnimatedPageProps {
|
|||||||
export const AnimatedPage = forwardRef(
|
export const AnimatedPage = forwardRef(
|
||||||
({ children }: AnimatedPageProps, ref: Ref<HTMLDivElement>) => {
|
({ children }: AnimatedPageProps, ref: Ref<HTMLDivElement>) => {
|
||||||
return (
|
return (
|
||||||
<motion.main className={styles.animatedPage} ref={ref} {...animationProps.fadeIn}>
|
<motion.main
|
||||||
|
className={styles.animatedPage}
|
||||||
|
ref={ref}
|
||||||
|
{...{ ...animationProps.fadeIn, transition: { duration: 1, ease: 'anticipate' } }}
|
||||||
|
>
|
||||||
{children}
|
{children}
|
||||||
</motion.main>
|
</motion.main>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user