Skip to content

Commit

Permalink
Removed Shop page navbar animation
Browse files Browse the repository at this point in the history
  • Loading branch information
maray29 committed May 20, 2024
1 parent 8dc1224 commit 1493503
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-adults-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@maray-ai/foodness-gracious': patch
---

Removed Shop page navbar
17 changes: 0 additions & 17 deletions src/shop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function init() {
duration: 0.5,
});

animateNav();
createModal();
}

Expand All @@ -36,22 +35,6 @@ function initSmoothScroll() {
return scroll;
}

function animateNav() {
gsap.set('.nav', {
backgroundColor: 'rgba(37, 64, 57, 0)',
});
gsap.to('.nav', {
backgroundColor: 'rgba(37, 64, 57, 1)',
scrollTrigger: {
trigger: '.nav',
start: 'clamp(top top)',
end: '+200px',
scrub: 1.5,
toggleActions: 'play reverse play reverse',
},
});
}

window.addEventListener('DOMContentLoaded', () => {
init();
// End
Expand Down

0 comments on commit 1493503

Please sign in to comment.