From 68e27c079c5027f532be9629b3994a9391a548c5 Mon Sep 17 00:00:00 2001 From: Hetari Date: Fri, 6 Sep 2024 23:01:47 +0300 Subject: [PATCH] add hero section animation --- src/animations/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/animations/index.ts b/src/animations/index.ts index 48ec6bd..00f7043 100644 --- a/src/animations/index.ts +++ b/src/animations/index.ts @@ -247,16 +247,16 @@ const animateLoadingPath = ( ) => { const tl = gsap.timeline({}); tl.to('#loading-screen', { - // delay: 2.5, + delay: 2.5, bottom: '100%', - // duration: 1, + duration: 1, ease: 'power2.inOut', }); tl.to( path.value, { - // duration: 1, + duration: 1, attr: { d: targetPath }, ease: 'power2.inOut', onComplete: () => { @@ -264,10 +264,10 @@ const animateLoadingPath = ( }, onStart: () => { setTimeout(() => { - // animateHeroNav(); - // samsungErrorModal(isSamsung); + animateHeroNav(); + samsungErrorModal(isSamsung); document.body.classList.remove('stop-scrolling'); - // window.scrollTo(0, 0); + window.scrollTo(0, 0); }, 250); }, },