WIP performances
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-16 17:40:18 +02:00
parent 239a47104e
commit b0b20da89b
3 changed files with 5 additions and 10 deletions

View File

@@ -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>

View File

@@ -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 {

View File

@@ -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 }}