refining transitions settings
This commit is contained in:
parent
2b651e3f60
commit
704e72171d
|
|
@ -26,7 +26,7 @@ export default function AnimatedPage({ children, className }) {
|
||||||
// const animationParameters = getAnimationParameters();
|
// const animationParameters = getAnimationParameters();
|
||||||
const animationParameters = {
|
const animationParameters = {
|
||||||
initial: { x: "50%", opacity: 0 },
|
initial: { x: "50%", opacity: 0 },
|
||||||
animate: { x: "0%", opacity: 1 },
|
animate: { x: "0", opacity: 1 },
|
||||||
exit: { x: "-50%", opacity: 0 },
|
exit: { x: "-50%", opacity: 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -37,9 +37,8 @@ export default function AnimatedPage({ children, className }) {
|
||||||
initial={animationParameters.initial}
|
initial={animationParameters.initial}
|
||||||
animate={animationParameters.animate}
|
animate={animationParameters.animate}
|
||||||
exit={animationParameters.exit}
|
exit={animationParameters.exit}
|
||||||
transition={{ duration: 0.4, ease: "easeOut" }}>
|
transition={{ duration: 0.3, ease: "easeOut" }}>
|
||||||
{children}
|
{children}
|
||||||
<p>qsqsdds</p>
|
|
||||||
</motion.div>
|
</motion.div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user