diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-05-17 01:55:14 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-05-17 01:55:14 +0000 |
| commit | e16d278e6c63177d488bb8b5c62cedc898906c09 (patch) | |
| tree | 2b2a20ea2ac439ec2945f921f21f9160cd7b6c28 /src/core/components/layouts/AnimationLayout.jsx | |
| parent | 6608d0e62fd232cbc19f42f58d1f56cfe2ef6842 (diff) | |
| parent | 0abaa462194715c25cee5fcede0da3085939b402 (diff) | |
Merged in master (pull request #8)
Master
Diffstat (limited to 'src/core/components/layouts/AnimationLayout.jsx')
| -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' } } |
