Add animations

This commit is contained in:
Fred Boniface
2023-06-28 21:49:44 +01:00
parent f2dc5d25e0
commit 4a3c1d56be
5 changed files with 35 additions and 9 deletions

View File

@@ -1,8 +1,10 @@
<script>
import { fade } from "svelte/transition";
export let variables = {title:""}
</script>
<div>
<div in:fade={{duration: 150}} out:fade={{duration: 150}}>
<span>{variables.title}</span>
<slot />
</div>

View File

@@ -1,4 +1,6 @@
<script>
import { fade } from "svelte/transition";
export let title = 'title'
</script>
@@ -9,7 +11,7 @@
<img src="/images/logo/wide_logo_200.png" alt="OwlBoard Logo">
</picture>
</a>
<header>{title}</header>
<header in:fade={{duration: 150}} out:fade={{duration: 150}}>{title}</header>
</div>
<div class="headerBlock">
<!-- This exists to prevent the headerBar overlapping anything below it -->

View File

@@ -1,4 +1,8 @@
<div id="container">
<script>
import { fade } from "svelte/transition";
</script>
<div id="container" in:fade={{delay: 150, duration: 250}} out:fade={{duration: 250}}>
<div class="spinner"></div>
<p>Loading...</p>
</div>