Skip to content

Commit

Permalink
Merge pull request #39 from TEDx-SJEC/stacking-cards
Browse files Browse the repository at this point in the history
fixed padding for point of sticking for stacking cards
  • Loading branch information
Vyshnav001 authored Oct 9, 2024
2 parents 7e3a648 + fbf2860 commit 1c88397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/stacking-cards/stacked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand All @@ -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,
Expand Down

0 comments on commit 1c88397

Please sign in to comment.