Spaces:
Runtime error
Runtime error
Download client/src/components/shared/PageTransition.jsx from moustafa7/flwo: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/moustafa7/flwo/resolve/main/client/src/components/shared/PageTransition.jsx
- Command line
-
hf download hf://spaces/moustafa7/flwo/client/src/components/shared/PageTransition.jsx
-
curl -L -o PageTransition.jsx https://huggingface.co/spaces/moustafa7/flwo/resolve/main/client/src/components/shared/PageTransition.jsx
419 Bytes
| import { motion } from 'framer-motion' | |
| const pageVariants = { | |
| initial: { opacity: 0, y: 10 }, | |
| animate: { opacity: 1, y: 0 }, | |
| exit: { opacity: 0, y: -10 } | |
| } | |
| export function PageTransition({ children }) { | |
| return ( | |
| <motion.div | |
| variants={pageVariants} | |
| initial="initial" | |
| animate="animate" | |
| exit="exit" | |
| transition={{ duration: 0.25 }} | |
| > | |
| {children} | |
| </motion.div> | |
| ) | |
| } | |