diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-16 14:27:06 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-16 14:27:06 +0700 |
| commit | 65be79407260ab8775c369e2db81f49da1624991 (patch) | |
| tree | d98932ba9de8e628d84ce8ce94cf8676fb68de4b /src/core | |
| parent | 4cbc06746141d698eb39f0c2be7281fd18e2a68c (diff) | |
fixing animation layout
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/components/layouts/AnimationLayout.jsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx index 7acf21dc..eeaa8751 100644 --- a/src/core/components/layouts/AnimationLayout.jsx +++ b/src/core/components/layouts/AnimationLayout.jsx @@ -1,9 +1,6 @@ -import useDevice from '@/core/hooks/useDevice' import { motion } from 'framer-motion' const AnimationLayout = ({ children, ...props }) => { - const { isMobile } = useDevice() - const initialConfig = { opacity: 0, x: 0, @@ -19,7 +16,7 @@ const AnimationLayout = ({ children, ...props }) => { const exitConfig = { opacity: 0, - x: isMobile ? 30 : 0, + x: 0, y: 0, transition: { duration: 0.2, ease: 'easeInOut' } } |
