refactor: add animations
This commit is contained in:
20
src/app/(modules)/template.tsx
Normal file
20
src/app/(modules)/template.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
"use client";
|
||||
|
||||
import { motion } from "motion/react";
|
||||
import React from "react";
|
||||
|
||||
export default function Template({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 10 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{
|
||||
duration: 0.4,
|
||||
ease: [0.21, 0.47, 0.32, 0.98],
|
||||
}}
|
||||
className="flex-1 flex flex-col"
|
||||
>
|
||||
{children}
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user