Skip to content

Commit

Permalink
fixed padding for point of sticking for stacking cards
Browse files Browse the repository at this point in the history
  • Loading branch information
charispinto committed Oct 8, 2024
1 parent 7e3a648 commit fbf2860
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 fbf2860

Please sign in to comment.