summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-03-15 15:15:02 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-03-15 15:15:02 +0700
commit402c7aaca4d0967201ec486a0a6bc075e86e32f3 (patch)
tree753492b3c823baa1c4c5c842b576b280a6170a1e
parent4e634a9d3556e94c7ce0729ef9f15b73495b2e28 (diff)
fix animation mobile
-rw-r--r--src/core/components/layouts/AnimationLayout.jsx2
-rw-r--r--src/pages/_app.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index 7acf21dc..6884fb4b 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -14,7 +14,7 @@ const AnimationLayout = ({ children, ...props }) => {
opacity: 1,
x: 0,
y: 0,
- transition: { duration: 0.2, delay: 0.2, ease: 'easeInOut' }
+ transition: { duration: 0.2, ease: 'easeInOut' }
}
const exitConfig = {
diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx
index 6fe07136..e32efc19 100644
--- a/src/pages/_app.jsx
+++ b/src/pages/_app.jsx
@@ -25,7 +25,7 @@ function MyApp({ Component, pageProps }) {
/>
<QueryClientProvider client={queryClient}>
<AnimatePresence
- mode='sync'
+ mode='wait'
initial={false}
onExitComplete={() => window.scrollTo(0, 0)}
>