Scope animations

This commit is contained in:
2020-03-10 21:16:21 +01:00
parent c8bc7f39c8
commit a60a67a892
9 changed files with 39 additions and 27 deletions

View File

@@ -5,17 +5,20 @@
// Animations
import { animateIn } from '../animations/TitleSite.js'
// Variables
let scope
/*
** Run code on component mount
*/
onMount(() => {
// Entering transition
animateIn()
animateIn(scope)
})
</script>
<div class="title-location title-location--inline">
<div class="title-location title-location--inline" bind:this={scope}>
<div role="heading" aria-level="1" aria-label="Houses">
<div class="anim-mask">
{@html lettersToSpan('Houses')}