Fix pages and components animations

- Fix delays
- Add the init back for TitleSite as it needs a delay for the page instance vs. loader
This commit is contained in:
2020-04-04 11:45:26 +02:00
parent 751694605a
commit 94fa63ef41
8 changed files with 51 additions and 47 deletions

View File

@@ -6,6 +6,7 @@
import { animateIn } from 'animations/TitleSite'
// Props and variables
export let init = false
let mounted = false
let scope
@@ -14,7 +15,7 @@
** Run code when mounted
*/
onMount(() => {
animateIn(scope)
animateIn(scope, init)
mounted = true
})
</script>