TitleSite: Fix reveal
This commit is contained in:
@@ -21,11 +21,11 @@ export const animateIn = (scope, init) => {
|
||||
})
|
||||
|
||||
// On scroll animation
|
||||
requestAnimationFrame(() => {
|
||||
const title = ScrollOut({
|
||||
once: true,
|
||||
targets: scope,
|
||||
onShown: () => letters.restart()
|
||||
})
|
||||
const title = ScrollOut({
|
||||
once: true,
|
||||
targets: scope,
|
||||
onShown: () => {
|
||||
requestAnimationFrame(() => letters.restart())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user