Skip to content

Commit e193931

Browse files
author
cybe4sent1nel
committed
fix: remove overflow-hidden that was clipping carousel and fix gap calculation in animation
1 parent 7604e0b commit e193931

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

apps/vue-app/src/components/Testimonials.vue

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,28 @@
2121
</div>
2222

2323
<!-- FULLWIDTH Carousel Section -->
24-
<div class="w-screen relative mb-12">
24+
<div class="relative mb-12 overflow-x-clip">
2525
<!-- Left Fade -->
2626
<div class="absolute left-0 top-0 h-full w-40 bg-gradient-to-r from-white via-white to-transparent z-20 pointer-events-none"></div>
2727
<!-- Right Fade -->
2828
<div class="absolute right-0 top-0 h-full w-40 bg-gradient-to-l from-white via-white to-transparent z-20 pointer-events-none"></div>
2929

3030
<!-- Row 1: Scrolling Left -->
31-
<div class="overflow-hidden">
32-
<div class="carousel-row">
33-
<TestimonialCard v-for="(card, idx) in cardsRow1Repeated" :key="`r1-${idx}`" :card="card" />
34-
</div>
31+
<div class="carousel-row">
32+
<TestimonialCard v-for="(card, idx) in cardsRow1Repeated" :key="`r1-${idx}`" :card="card" />
3533
</div>
3634
</div>
3735

3836
<!-- FULLWIDTH Carousel Section Row 2 -->
39-
<div class="w-screen relative">
37+
<div class="relative overflow-x-clip">
4038
<!-- Left Fade -->
4139
<div class="absolute left-0 top-0 h-full w-40 bg-gradient-to-r from-white via-white to-transparent z-20 pointer-events-none"></div>
4240
<!-- Right Fade -->
4341
<div class="absolute right-0 top-0 h-full w-40 bg-gradient-to-l from-white via-white to-transparent z-20 pointer-events-none"></div>
4442

4543
<!-- Row 2: Scrolling Right -->
46-
<div class="overflow-hidden">
47-
<div class="carousel-row carousel-row-reverse">
48-
<TestimonialCard v-for="(card, idx) in cardsRow2Repeated" :key="`r2-${idx}`" :card="card" />
49-
</div>
44+
<div class="carousel-row carousel-row-reverse">
45+
<TestimonialCard v-for="(card, idx) in cardsRow2Repeated" :key="`r2-${idx}`" :card="card" />
5046
</div>
5147
</div>
5248

@@ -78,13 +74,13 @@
7874
transform: translateX(0px);
7975
}
8076
100% {
81-
transform: translateX(calc(-320px * 4 - 1.5rem * 4));
77+
transform: translateX(calc(-320px * 4 - 1.5rem * 3));
8278
}
8379
}
8480
8581
@keyframes scrollRight {
8682
0% {
87-
transform: translateX(calc(-320px * 4 - 1.5rem * 4));
83+
transform: translateX(calc(-320px * 4 - 1.5rem * 3));
8884
}
8985
100% {
9086
transform: translateX(0px);

0 commit comments

Comments
 (0)