commenting unused lines
This commit is contained in:
parent
72b7cec9af
commit
2a717bfd1d
|
|
@ -5,24 +5,24 @@ import { motion } from "framer-motion";
|
||||||
export default function AnimatedPage({ children, className }) {
|
export default function AnimatedPage({ children, className }) {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const isNext = location.state && location.state.isNext;
|
// const isNext = location.state && location.state.isNext;
|
||||||
const isPrev = location.state && location.state.isPrev;
|
// const isPrev = location.state && location.state.isPrev;
|
||||||
const isGoingNext = location.state && location.state.isGoingNext;
|
// const isGoingNext = location.state && location.state.isGoingNext;
|
||||||
|
|
||||||
function getAnimationParameters() {
|
// function getAnimationParameters() {
|
||||||
const animationParameters = { animate: { x: "0%", opacity: 1 } };
|
// const animationParameters = { animate: { x: "0%", opacity: 1 } };
|
||||||
if (isNext === true) {
|
// if (isNext === true) {
|
||||||
animationParameters.initial = { x: "50%", opacity: 0 };
|
// animationParameters.initial = { x: "50%", opacity: 0 };
|
||||||
} else {
|
// } else {
|
||||||
animationParameters.initial = { x: "-50%", opacity: 0 };
|
// animationParameters.initial = { x: "-50%", opacity: 0 };
|
||||||
}
|
// }
|
||||||
if (isGoingNext === true) {
|
// if (isGoingNext === true) {
|
||||||
animationParameters.exit = { x: "-50%", opacity: 0 };
|
// animationParameters.exit = { x: "-50%", opacity: 0 };
|
||||||
} else {
|
// } else {
|
||||||
animationParameters.exit = { x: "50%", opacity: 0 };
|
// animationParameters.exit = { x: "50%", opacity: 0 };
|
||||||
}
|
// }
|
||||||
return animationParameters;
|
// return animationParameters;
|
||||||
}
|
// }
|
||||||
// const animationParameters = getAnimationParameters();
|
// const animationParameters = getAnimationParameters();
|
||||||
const animationParameters = {
|
const animationParameters = {
|
||||||
initial: { x: "50%", opacity: 0 },
|
initial: { x: "50%", opacity: 0 },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user