Add playback indication in cards and update carousel animation #153

This commit is contained in:
Prayag Prajapati committed 2023-08-31 18:30:01 +05:30
1 parent e36f92e135
commit f1394b7172
10 files changed
+255 -71

No files matched your search

+6 -5
View File
@@ -110,8 +110,8 @@ const CarouselSlide = ({ item }) => {
initial={{
transform:
animationDirection == "right"
? "translateX(20%)"
: "translateX(-20%)",
? "translateX(10%)"
: "translateX(-10%)",
opacity: 0,
}}
animate={{
@@ -121,13 +121,14 @@ const CarouselSlide = ({ item }) => {
exit={{
transform:
animationDirection == "right"
? "translateX(-20%)"
: "translateX(20%)",
? "translateX(-10%)"
: "translateX(10%)",
opacity: 0,
}}
transition={{
duration: 0.35,
duration: 0.25,
ease: "easeInOut",
}}
className="hero-carousel-detail"
>