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 // On scroll animation
const title = ScrollOut({ requestAnimationFrame(() => {
once: true, const title = ScrollOut({
targets: scope, once: true,
onShown: () => { targets: scope,
requestAnimationFrame(() => letters.restart()) onShown: () => requestAnimationFrame(() => letters.restart())
} })
}) })
} }