From 6df02d6a2bf6d5ea77f7703917f2709562308a1a Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sun, 20 Nov 2022 01:08:57 +0700 Subject: Improve page transition and product card badge --- src/components/Layout.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/components/Layout.js') diff --git a/src/components/Layout.js b/src/components/Layout.js index 42d8ebdf..6933d535 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -1,15 +1,9 @@ import { motion } from 'framer-motion'; -export default function Layout({ children, pageProps }) { - const variants = { - hidden: { opacity: 0, x: -75, y: 0 }, - enter: { opacity: 1, x: 0, y: 0 }, - exit: { opacity: 0, x: 0, y: -50 }, - }; - +export default function Layout({ children, ...pageProps }) { const transition = { ease: 'linear', - duration: 0.4 + duration: 0.3 }; return children && ( -- cgit v1.2.3