Skip to content

Commit f9eab00

Browse files
committed
perf: drop view transition
1 parent a3b8efc commit f9eab00

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/app.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,13 @@ input[type='search']::-webkit-search-results-decoration {
450450
view-transition-name: site-logo;
451451
}
452452
453-
/* Customize the view transition animations */
453+
/* Disable the default fade transition on page navigation */
454+
::view-transition-old(root),
455+
::view-transition-new(root) {
456+
animation: none;
457+
}
458+
459+
/* Customize the view transition animations for specific elements */
454460
::view-transition-old(search-box),
455461
::view-transition-new(search-box),
456462
::view-transition-old(site-logo),

0 commit comments

Comments
 (0)