mirror of https://github.com/sveltejs/svelte
site: remove view transitions from blog (#9201)
parent
effeb7abba
commit
a5cde37bc6
@ -1,16 +0,0 @@
|
||||
<script>
|
||||
import { onNavigate } from '$app/navigation';
|
||||
|
||||
onNavigate((navigation) => {
|
||||
if (!document.startViewTransition) return;
|
||||
|
||||
return new Promise((resolve) => {
|
||||
document.startViewTransition(async () => {
|
||||
resolve();
|
||||
await navigation.complete;
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<slot />
|
Loading…
Reference in new issue