Skip to content

Commit

Permalink
fix some ui issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Sep 17, 2024
1 parent f9d93d0 commit ea9125d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/common/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
const gotoSection = (url: string) => {
lenis.start();
lenis.scrollTo(url, { duration: 1 });
lenis.scrollTo(url, { duration: 3 });
toggleBtnClickAnimation();
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/sections/Works.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: () => {
Expand Down
6 changes: 5 additions & 1 deletion src/functions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit ea9125d

Please sign in to comment.