Skip to content

Commit

Permalink
fix: Don't fade out last project (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
evadecker authored Jun 26, 2024
1 parent fb16fe4 commit f3a1193
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/ProjectPreview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit f3a1193

Please sign in to comment.