Problem
Pages load abruptly with no transition, so the app
feels static.
What To Build
Wrap each page in a motion.div with:
initial: { opacity: 0, y: 16 }
animate: { opacity: 1, y: 0 }
exit: { opacity: 0, y: -8 }
transition: { duration: 0.2 }
Create src/components/layout/PageTransition.tsx
and use it in Layout.tsx wrapping the children.
Also add stagger animations to card grids:
Each card fades in 0.1s after the previous one.
Files To Touch
- src/components/layout/PageTransition.tsx (new)
- src/components/layout/Layout.tsx
- src/pages/Home.tsx (section animations)
Acceptance Criteria
Mandatory Checks Before PR
Problem
Pages load abruptly with no transition, so the app
feels static.
What To Build
Wrap each page in a motion.div with:
initial: { opacity: 0, y: 16 }
animate: { opacity: 1, y: 0 }
exit: { opacity: 0, y: -8 }
transition: { duration: 0.2 }
Create src/components/layout/PageTransition.tsx
and use it in Layout.tsx wrapping the children.
Also add stagger animations to card grids:
Each card fades in 0.1s after the previous one.
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR