TitleSite: Fix reveal
This commit is contained in:
@@ -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())
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user