From f3a11938ac0d7ff196ef8376d28614c31b2dbe64 Mon Sep 17 00:00:00 2001 From: Eva Decker Date: Wed, 26 Jun 2024 11:26:27 -0400 Subject: [PATCH] fix: Don't fade out last project (#476) --- src/components/ProjectPreview.astro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/ProjectPreview.astro b/src/components/ProjectPreview.astro index 0d9866d9..586fd389 100644 --- a/src/components/ProjectPreview.astro +++ b/src/components/ProjectPreview.astro @@ -72,9 +72,11 @@ const { Content } = await render(); padding-top: var(--space-2xl); @supports (animation-timeline: view()) { - animation: fadeOut linear forwards; - animation-range: cover 70% cover 95%; - animation-timeline: view(); + &:not(:last-of-type) { + animation: fadeOut linear forwards; + animation-range: cover 70% cover 95%; + animation-timeline: view(); + } } }