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