Skip to content

Commit

Permalink
header_transition
Browse files Browse the repository at this point in the history
  • Loading branch information
cel3ntano committed Jun 18, 2024
1 parent 22ef4c7 commit ebbb159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
background-color: var(--White);
z-index: 99999;
position: fixed;
transition: all 0.2s linear;
}

.header > .container {
Expand Down
2 changes: 1 addition & 1 deletion src/js/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const goToSection = e => {

const changeBc = () => {
const scrollPosition = window.scrollY || window.pageYOffset;
if (scrollPosition > 150) {
if (scrollPosition > 100) {
headerContainer.classList.remove('header-background');
upLink.classList.add('up-link-active');
} else {
Expand Down

0 comments on commit ebbb159

Please sign in to comment.