From 1718ed01b6805e2b94db25f8962facf652be98b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 21 Apr 2020 15:39:14 +0200 Subject: [PATCH] TitleSite: Fix reveal --- src/animations/TitleSite.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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()) + } }) }