Skip to content

Commit aff40b2

Browse files
committed
feat(ui): add framer-motion page transitions via template.tsx
fix(ui): add jest-dom types to tsconfig for template test fix(ui): remove jest-dom from tsconfig types to fix build fix(ui): add jest-dom vitest import to resolve typecheck
1 parent 6c0c61d commit aff40b2

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

app/template.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use client';
2+
3+
import { motion } from 'framer-motion';
4+
5+
export default function Template({ children }: { children: React.ReactNode }) {
6+
return (
7+
<motion.div
8+
initial={{ opacity: 0, y: 8 }}
9+
animate={{ opacity: 1, y: 0 }}
10+
exit={{ opacity: 0, y: -8 }}
11+
transition={{ duration: 0.3, ease: 'easeInOut' }}
12+
>
13+
{children}
14+
</motion.div>
15+
);
16+
}

0 commit comments

Comments
 (0)