fix: first animation & transition
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-01 21:28:17 +02:00
parent 1cc823e9d1
commit 6f409c5331
3 changed files with 5 additions and 5 deletions

View File

@@ -7,18 +7,19 @@
// Variables
let scope
let mounted = false
/*
** Run code on component mount
*/
onMount(() => {
// Entering transition
mounted = true
animateIn(scope)
})
</script>
<div class="title-location title-location--inline" bind:this={scope}>
<div class="title-location title-location--inline" bind:this={scope} style="opacity: {mounted ? 1 : 0}">
<div role="heading" aria-level="1" aria-label="Houses">
<div class="anim-mask">
{@html charsToSpan('Houses')}