Skip to content

Commit

Permalink
♻️ refa: update framer variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Bear29ers committed Apr 6, 2024
1 parent 68db86c commit eb91f3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import type { ReactNode } from 'react';
import { motion } from 'framer-motion';

const variants = {
hidden: { opacity: 0, x: 0, y: 0 },
enter: { opacity: 1, x: 0, y: 0 },
hidden: { opacity: 0 },
enter: { opacity: 1 },
};

const Template = ({ children }: { children: ReactNode }) => {
Expand All @@ -15,7 +15,7 @@ const Template = ({ children }: { children: ReactNode }) => {
variants={variants}
initial="hidden"
animate="enter"
transition={{ type: 'linear', duration: 0.25 }}
transition={{ type: 'spring', duration: 0.65 }}
key="Bear29ers">
{children}
</motion.main>
Expand Down

0 comments on commit eb91f3d

Please sign in to comment.