diff --git a/src/components/common/Nav.vue b/src/components/common/Nav.vue index 259f34c..316a0a1 100644 --- a/src/components/common/Nav.vue +++ b/src/components/common/Nav.vue @@ -155,7 +155,7 @@ const gotoSection = (url: string) => { lenis.start(); - lenis.scrollTo(url, { duration: 1 }); + lenis.scrollTo(url, { duration: 3 }); toggleBtnClickAnimation(); }; diff --git a/src/components/sections/Works.vue b/src/components/sections/Works.vue index bac0a31..a748409 100644 --- a/src/components/sections/Works.vue +++ b/src/components/sections/Works.vue @@ -256,9 +256,9 @@ scrollTrigger: { trigger: div, // start: 'top 40%', - start: 'top 20%', + start: 'top 25%', // end: 'bottom 40%', - end: 'bottom 30%', + end: 'bottom 25%', scrub: 0.01, // markers: true, onLeaveBack: () => { diff --git a/src/functions/index.ts b/src/functions/index.ts index fb16d69..f3ffd94 100644 --- a/src/functions/index.ts +++ b/src/functions/index.ts @@ -65,7 +65,11 @@ const getAvailableForWorkDate = () => { const gotoSection = (url: string) => { lenis.start(); - lenis.scrollTo(url, { duration: 1 }); + if (url === '#testimonials-section') { + lenis.scrollTo('#slider', { duration: 3 }); + return; + } + lenis.scrollTo(url, { duration: 3 }); }; export { textSplitterIntoChar, getAvailableForWorkDate, gotoSection };