fix(theme): fix page transition flickering (#717)

This commit is contained in:
pengzhanbo 2025-10-12 14:31:32 +08:00 committed by GitHub
parent 338ca4ad7c
commit 8cec3f23e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,6 +71,7 @@ const toggleAppearance = inject('toggle-appearance', async ({ clientX: x, client
{
duration,
easing: 'ease-in',
fill: 'forwards',
pseudoElement: `::view-transition-${isDark.value ? 'old' : 'new'}(root)`,
},
)
@ -120,10 +121,15 @@ watchPostEffect(() => {
</style>
<style>
::view-transition-image-pair(root) {
isolation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
mix-blend-mode: normal;
animation: none;
transition: none !important;
animation: none !important;
}
::view-transition-old(root),