Skip to content

Commit

Permalink
add hero section animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Sep 6, 2024
1 parent 017eaa7 commit 68e27c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/animations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,27 +247,27 @@ 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: () => {
gsap.set('#loading-screen', { display: 'none' });
},
onStart: () => {
setTimeout(() => {
// animateHeroNav();
// samsungErrorModal(isSamsung);
animateHeroNav();
samsungErrorModal(isSamsung);
document.body.classList.remove('stop-scrolling');
// window.scrollTo(0, 0);
window.scrollTo(0, 0);
}, 250);
},
},
Expand Down

0 comments on commit 68e27c0

Please sign in to comment.