Skip to content

Commit

Permalink
Évite une transition lors de la navigation
Browse files Browse the repository at this point in the history
Ça serait bien d'avoir une solution plus systématique à
sveltejs/kit#628
  • Loading branch information
mquandalle committed Nov 21, 2021
1 parent d907178 commit 92e9270
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/routes/ville/[slug].svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@
import Details from '$lib/components/Details.svelte';
import Results from '$lib/components/Results.svelte';
import { fly } from 'svelte/transition';
import { onMount } from 'svelte';
import { get } from 'svelte/store';
export let ville;
onMount(() => localisation.set(ville));
localisation.set(ville);
</script>
<svelte:head>
Expand All @@ -38,7 +37,7 @@
</svelte:head>
<div class="w-full max-w-screen-md m-auto">
<div class="grid overflow-hidden -m-4 p-4" transition:fly={{ y: 30 }}>
<div class="grid overflow-hidden -m-4 p-4" transition:fly|local={{ y: 30 }}>
{#if $page.query.get('velo')}
<div
class="col-start-1 col-end-1 row-start-1 row-end-1"
Expand Down

0 comments on commit 92e9270

Please sign in to comment.