complete score page - complete transition for pages

This commit is contained in:
Alihaghighattalab
2024-08-19 13:29:46 +03:30
parent 09621e8230
commit ddb0075e2f
27 changed files with 178 additions and 38 deletions
+24
View File
@@ -0,0 +1,24 @@
import { PropsWithChildren } from "react"
import { motion } from "framer-motion"
export const TransitionPages = ({ children }: PropsWithChildren) => {
const animations = {
initial: {
opacity: 0,
x: 100
},
animate: {
opacity: 1,
x: 0
},
exit: {
opacity: 0,
x: -100
}
}
return (
<motion.div variants={animations} initial="initial" animate="animate" exit="exit">
{children}
</motion.div>
)
}