summaryrefslogtreecommitdiff
path: root/src/components/Layout.js
diff options
context:
space:
mode:
authorRafi Zadanly <rafizadanly@gmail.com>2022-11-20 01:08:57 +0700
committerRafi Zadanly <rafizadanly@gmail.com>2022-11-20 01:08:57 +0700
commit6df02d6a2bf6d5ea77f7703917f2709562308a1a (patch)
tree4695dcefecead7d66ebec74b938e0987328ce1cd /src/components/Layout.js
parentce16ffadc9c0db5a31665d30aff2b6eeaa8e7834 (diff)
Improve page transition and product card badge
Diffstat (limited to 'src/components/Layout.js')
-rw-r--r--src/components/Layout.js10
1 files changed, 2 insertions, 8 deletions
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 && (