Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TarasKachmar2022 committed Mar 8, 2024
1 parent a2e6aa0 commit 6d0b139
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/js/nav-anim.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ if (animNavItems.length > 0) {
}
}
}
}

function topOffsetSelector() {
const viewportWidth = window.innerWidth;
let topOffset;
function topOffsetSelector() {
const viewportWidth = window.innerWidth;

if (viewportWidth >= 768) {
topOffset = 90;
return topOffset;
} else {
topOffset = 120;
return topOffset;
if (viewportWidth >= 768) {
topOffset = 90;
return topOffset;
} else {
topOffset = 120;
return topOffset;
}
}
}

Expand Down

0 comments on commit 6d0b139

Please sign in to comment.