Skip to content

Commit

Permalink
View Transitions: Fixes Astro's fade animation to prevent flicker dur…
Browse files Browse the repository at this point in the history
…ing morph transitions (#12046)
  • Loading branch information
martrapp authored Sep 26, 2024
1 parent 1720c5b commit d7779df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-squids-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

View transitions: Fixes Astro's fade animation to prevent flashing during morph transitions.
10 changes: 10 additions & 0 deletions packages/astro/components/viewtransitions.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@
@keyframes astroFadeIn {
from {
opacity: 0;
mix-blend-mode: plus-lighter;
}
to {
opacity: 1;
mix-blend-mode: plus-lighter;
}
}

@keyframes astroFadeOut {
from {
opacity: 1;
mix-blend-mode: plus-lighter;
}
to {
opacity: 0;
mix-blend-mode: plus-lighter;
}
}

Expand Down

0 comments on commit d7779df

Please sign in to comment.