WIP Animations all over site

- Run a transition In for each page
- Involve a "loader" panel on page change
- TODO: tweak the animations and finish the concept
This commit is contained in:
2020-03-06 14:22:51 +01:00
parent cd1033f97b
commit 9ffc210c02
27 changed files with 827 additions and 296 deletions

View File

@@ -1,17 +1,33 @@
<script>
import { onMount } from 'svelte'
import { lettersToSpan } from '../utils/functions'
// Animations
import { animateIn } from '../animations/TitleSite.js'
/*
** Run code on component mount
*/
onMount(() => {
// Entering transition
animateIn()
})
</script>
<div class="title-location title-location--inline">
<div role="heading" aria-level="1" aria-label="Houses" data-aos="letters-translate-bottom">
<div role="heading" aria-level="1" aria-label="Houses">
<div class="anim-mask">
{@html lettersToSpan('Houses')}
</div>
</div>
<em>of the</em>
<em>
<span>of</span>
<span>the</span>
</em>
<div aria-label="World" data-aos="letters-translate-bottom">
<div aria-label="World">
<div class="anim-mask">
{@html lettersToSpan('World')}
</div>