summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/components/Home.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/components/Home.tsx b/client/src/components/Home.tsx
index f31d219..8e84359 100644
--- a/client/src/components/Home.tsx
+++ b/client/src/components/Home.tsx
@@ -37,7 +37,7 @@ function Home() {
/>
)}
<div className="carousel">
- <AnimatePresence mode="wait">
+ <AnimatePresence mode="popLayout">
<motion.img
key={photos[currentIndex]}
src={photos[currentIndex]}
@@ -45,7 +45,7 @@ function Home() {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
- transition={{ duration: 1 }}
+ transition={{ duration: 2, ease: 'easeInOut' }}
/>
</AnimatePresence>
</div>