diff --git a/src/animations/TitleSite.js b/src/animations/TitleSite.js index f5717ba..99fc616 100644 --- a/src/animations/TitleSite.js +++ b/src/animations/TitleSite.js @@ -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()) + } }) }