Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8cec3f2

Browse files
authored
fix(theme): fix page transition flickering (#717)
1 parent 338ca4a commit 8cec3f2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

theme/src/client/components/VPSwitchAppearance.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const toggleAppearance = inject('toggle-appearance', async ({ clientX: x, client
7171
{
7272
duration,
7373
easing: 'ease-in',
74+
fill: 'forwards',
7475
pseudoElement: `::view-transition-${isDark.value ? 'old' : 'new'}(root)`,
7576
},
7677
)
@@ -120,10 +121,15 @@ watchPostEffect(() => {
120121
</style>
121122

122123
<style>
124+
::view-transition-image-pair(root) {
125+
isolation: auto;
126+
}
127+
123128
::view-transition-old(root),
124129
::view-transition-new(root) {
125130
mix-blend-mode: normal;
126-
animation: none;
131+
transition: none !important;
132+
animation: none !important;
127133
}
128134
129135
::view-transition-old(root),

0 commit comments

Comments
 (0)