From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 17 Feb 2023 17:07:50 +0700
Subject: Refactor

---
 src/core/components/layouts/AnimationLayout.jsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 src/core/components/layouts/AnimationLayout.jsx

(limited to 'src/core/components/layouts/AnimationLayout.jsx')

diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
new file mode 100644
index 00000000..cdd2d059
--- /dev/null
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -0,0 +1,22 @@
+import { motion } from 'framer-motion'
+
+const AnimationLayout = ({ children, ...props }) => {
+  const transition = { 
+    ease: 'easeOut', 
+    duration: 0.3
+  }
+
+  return children && (
+    <motion.main
+      initial={{ opacity: 0, x: 0, y: 0 }}
+      animate={{ opacity: 1, x: 0, y: 0 }}
+      exit={{ opacity: 0, x: 15, y: 0 }}
+      transition={transition}
+      {...props}
+    >
+      { children }
+    </motion.main>
+  )
+}
+
+export default AnimationLayout
\ No newline at end of file
-- 
cgit v1.2.3


From 347e28848fb063ffcb7f9268384409e57b7ef3ad Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 18 Feb 2023 22:08:07 +0700
Subject: change animation

---
 src/core/components/layouts/AnimationLayout.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/core/components/layouts/AnimationLayout.jsx')

diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index cdd2d059..12b6d112 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -8,9 +8,9 @@ const AnimationLayout = ({ children, ...props }) => {
 
   return children && (
     <motion.main
-      initial={{ opacity: 0, x: 0, y: 0 }}
+      initial={{ opacity: 0, x: 15, y: 0 }}
       animate={{ opacity: 1, x: 0, y: 0 }}
-      exit={{ opacity: 0, x: 15, y: 0 }}
+      exit={{ opacity: 0, x: 0, y: 0 }}
       transition={transition}
       {...props}
     >
-- 
cgit v1.2.3


From 75767ed41d28947429f3dbef9c7e128ebc552e64 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 18 Feb 2023 22:18:46 +0700
Subject: change animation

---
 src/core/components/layouts/AnimationLayout.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/layouts/AnimationLayout.jsx')

diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index 12b6d112..f40f1eec 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -8,7 +8,7 @@ const AnimationLayout = ({ children, ...props }) => {
 
   return children && (
     <motion.main
-      initial={{ opacity: 0, x: 15, y: 0 }}
+      initial={{ opacity: 0, x: 30, y: 0 }}
       animate={{ opacity: 1, x: 0, y: 0 }}
       exit={{ opacity: 0, x: 0, y: 0 }}
       transition={transition}
-- 
cgit v1.2.3


From 67582cf3274929359eebe849b2fbeda4f3a8f630 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 18 Feb 2023 22:21:46 +0700
Subject: change animation

---
 src/core/components/layouts/AnimationLayout.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/core/components/layouts/AnimationLayout.jsx')

diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index f40f1eec..adb6b081 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -8,9 +8,9 @@ const AnimationLayout = ({ children, ...props }) => {
 
   return children && (
     <motion.main
-      initial={{ opacity: 0, x: 30, y: 0 }}
+      initial={{ opacity: 0, x: 0, y: 0 }}
       animate={{ opacity: 1, x: 0, y: 0 }}
-      exit={{ opacity: 0, x: 0, y: 0 }}
+      exit={{ opacity: 0, x: 30, y: 0 }}
       transition={transition}
       {...props}
     >
-- 
cgit v1.2.3


From ed950b23d50f9b3993cfd2ac2386a5b3a68d5e57 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 17:03:28 +0700
Subject: fix

---
 src/core/components/layouts/AnimationLayout.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/layouts/AnimationLayout.jsx')

diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index adb6b081..cf2b06d5 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -2,7 +2,7 @@ import { motion } from 'framer-motion'
 
 const AnimationLayout = ({ children, ...props }) => {
   const transition = { 
-    ease: 'easeOut', 
+    ease: 'easeIn', 
     duration: 0.3
   }
 
-- 
cgit v1.2.3


From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 11:03:34 +0700
Subject: prettier

---
 src/core/components/layouts/AnimationLayout.jsx | 28 +++++++++++++------------
 1 file changed, 15 insertions(+), 13 deletions(-)

(limited to 'src/core/components/layouts/AnimationLayout.jsx')

diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index cf2b06d5..357187b2 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -1,22 +1,24 @@
 import { motion } from 'framer-motion'
 
 const AnimationLayout = ({ children, ...props }) => {
-  const transition = { 
-    ease: 'easeIn', 
+  const transition = {
+    ease: 'easeIn',
     duration: 0.3
   }
 
-  return children && (
-    <motion.main
-      initial={{ opacity: 0, x: 0, y: 0 }}
-      animate={{ opacity: 1, x: 0, y: 0 }}
-      exit={{ opacity: 0, x: 30, y: 0 }}
-      transition={transition}
-      {...props}
-    >
-      { children }
-    </motion.main>
+  return (
+    children && (
+      <motion.main
+        initial={{ opacity: 0, x: 0, y: 0 }}
+        animate={{ opacity: 1, x: 0, y: 0 }}
+        exit={{ opacity: 0, x: 30, y: 0 }}
+        transition={transition}
+        {...props}
+      >
+        {children}
+      </motion.main>
+    )
   )
 }
 
-export default AnimationLayout
\ No newline at end of file
+export default AnimationLayout
-- 
cgit v1.2.3


From 047aacc646c86b316c4d42fb720cbc841426df27 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 24 Feb 2023 10:05:06 +0700
Subject: fix

---
 src/core/components/layouts/AnimationLayout.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/layouts/AnimationLayout.jsx')

diff --git a/src/core/components/layouts/AnimationLayout.jsx b/src/core/components/layouts/AnimationLayout.jsx
index 357187b2..c4dee606 100644
--- a/src/core/components/layouts/AnimationLayout.jsx
+++ b/src/core/components/layouts/AnimationLayout.jsx
@@ -3,7 +3,7 @@ import { motion } from 'framer-motion'
 const AnimationLayout = ({ children, ...props }) => {
   const transition = {
     ease: 'easeIn',
-    duration: 0.3
+    duration: 0.2
   }
 
   return (
-- 
cgit v1.2.3

