mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
View Transitions: Fixes Astro's fade animation to prevent flicker during morph transitions (#12046)
This commit is contained in:
parent
1720c5b1d2
commit
d7779dfae7
2 changed files with 15 additions and 0 deletions
5
.changeset/fifty-squids-build.md
Normal file
5
.changeset/fifty-squids-build.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
View transitions: Fixes Astro's fade animation to prevent flashing during morph transitions.
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue