TitleSite: Fix reveal

This commit is contained in:
2020-04-21 17:48:02 +02:00
parent 4b62187752
commit 060796a3a2

View File

@@ -21,11 +21,11 @@ export const animateIn = (scope, init) => {
})
// On scroll animation
const title = ScrollOut({
once: true,
targets: scope,
onShown: () => {
requestAnimationFrame(() => letters.restart())
}
requestAnimationFrame(() => {
const title = ScrollOut({
once: true,
targets: scope,
onShown: () => requestAnimationFrame(() => letters.restart())
})
})
}