This commit is contained in:
@@ -63,7 +63,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { fade } from 'svelte/transition'
|
|
||||||
import { stores } from '@sapper/app'
|
import { stores } from '@sapper/app'
|
||||||
import {
|
import {
|
||||||
apiEndpoints,
|
apiEndpoints,
|
||||||
@@ -109,8 +108,7 @@
|
|||||||
|
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
const gaTracker = await import('utils/AnalyticsTracker')
|
await import('utils/AnalyticsTracker').then(module => AnalyticsTracker = module.default)
|
||||||
AnalyticsTracker = gaTracker.default
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -122,11 +120,7 @@
|
|||||||
<link rel="canonical" href={`https://${$page.host}${$page.path}`} />
|
<link rel="canonical" href={`https://${$page.host}${$page.path}`} />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<main class="housesof"
|
<main class="housesof" class:is-transitioning={!$pageReady}>
|
||||||
class:is-transitioning={!$pageReady}
|
|
||||||
in:fade={{ duration: 600 }}
|
|
||||||
out:fade={{ duration: 600 }}
|
|
||||||
>
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transition: opacity 0.4s $ease-quart;
|
transition: opacity 0.6s $ease-quart;
|
||||||
will-change: opacity;
|
will-change: opacity;
|
||||||
|
|
||||||
&.is-transitioning {
|
&.is-transitioning {
|
||||||
|
|||||||
@@ -36,9 +36,10 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{#if show || !process.browser}
|
||||||
<slot />
|
<slot />
|
||||||
|
|
||||||
{#if !show && process.browser}
|
{:else}
|
||||||
<div class="transition" id="transition" aria-hidden="true" bind:this={scope}>
|
<div class="transition" id="transition" aria-hidden="true" bind:this={scope}>
|
||||||
<div class="transition__loader"
|
<div class="transition__loader"
|
||||||
in:fly={{ y: 32, duration: 1000, easing: quartOut }}
|
in:fly={{ y: 32, duration: 1000, easing: quartOut }}
|
||||||
|
|||||||
Reference in New Issue
Block a user