TitleSite: Fix reveal

This commit is contained in:
2020-04-21 15:39:14 +02:00
parent fa2a213516
commit 1718ed01b6

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: () => letters.restart() onShown: () => {
}) requestAnimationFrame(() => letters.restart())
}
}) })
} }