From fbf28604a9011aa074fd0baff8adc2ea6bd2082a Mon Sep 17 00:00:00 2001 From: charispinto Date: Wed, 9 Oct 2024 01:07:01 +0530 Subject: [PATCH] fixed padding for point of sticking for stacking cards --- src/components/stacking-cards/stacked.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/stacking-cards/stacked.tsx b/src/components/stacking-cards/stacked.tsx index fa493a4..e55839f 100644 --- a/src/components/stacking-cards/stacked.tsx +++ b/src/components/stacking-cards/stacked.tsx @@ -30,7 +30,7 @@ export default function StackedCards() { if (i !== cardsEl.length - 1) { scale = 0.9 + 0.025 * i; - rotate = -10; + rotate = -5; } // console.log(`Card Index: ${i}, Scale: ${scale}, Rotate: ${rotate}`); @@ -41,7 +41,7 @@ export default function StackedCards() { ease: "none", scrollTrigger: { trigger: e, - start: "top " + (50 + 30 * i), + start: "top " + (120 + 30 * i), end: "bottom +=650px", endTrigger: ".end-animation", pin: e,