From 8d8122fb59aa70db1244244a429f120354853d68 Mon Sep 17 00:00:00 2001 From: Eva Decker Date: Wed, 26 Jun 2024 11:24:15 -0400 Subject: [PATCH] Don't fade out last project --- 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(); + } } }