Skip to content

Commit 3a7304d

Browse files
committed
fix: adjust testimonial column height and improve animation pause on hover
Signed-off-by: Frost Ming <me@frostming.com>
1 parent 2d2dabe commit 3a7304d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

website/src/components/Testimonials.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const columns = columnConfigs.map((config, columnIndex) => ({
5050
<SectionHeading eyebrow={eyebrow} heading={heading} align="center" />
5151

5252
<div class="testimonials-wrapper relative" data-testimonials>
53-
<div class="testimonials-columns testimonials-fade grid h-[320px] gap-3 overflow-hidden sm:h-[380px] sm:grid-cols-2 lg:h-[440px] lg:grid-cols-3">
53+
<div class="testimonials-columns testimonials-fade grid h-80 gap-3 overflow-hidden sm:h-[380px] sm:grid-cols-2 lg:h-[440px] lg:grid-cols-3">
5454
{columns.map((column) => (
5555
<div class:list={[column.className, column.directionClass]}>
5656
<div class="flex flex-col gap-3">
@@ -99,6 +99,11 @@ const columns = columnConfigs.map((config, columnIndex) => ({
9999
animation-play-state: running;
100100
}
101101

102+
:global([data-testimonials-playing]:hover) .testimonial-col > div,
103+
:global([data-testimonials-playing]:focus-within) .testimonial-col > div {
104+
animation-play-state: paused;
105+
}
106+
102107
@keyframes scroll-up {
103108
from { transform: translateY(0); }
104109
to { transform: translateY(-50%); }

0 commit comments

Comments
 (0)