Skip to content

Commit

Permalink
SPIN-146 // added missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieghard Hillbrecht committed Sep 16, 2024
1 parent 66fb227 commit 0105f44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ function decorateSectionsWithPlanetToBackgroundAnimation(main) {
// nextSection.querySelector('.section-planet').classList.add('hidden');
previousSection.querySelectorAll('.section-planet').forEach((planet) => {
planet.classList.add('hidden');
})
});
nextSection.querySelectorAll('.section-planet').forEach((planet) => {
planet.classList.add('hidden');
})
});
} else if (entry.boundingClientRect.top > 0) {
entry.target.classList.add('background-hidden');
previousSection.querySelectorAll('.section-planet').forEach((planet) => {
planet.classList.remove('hidden');
})
});
} else if (entry.boundingClientRect.top < 0) {
entry.target.classList.add('background-hidden');
nextSection.querySelector('.section-planet').classList.remove('hidden');
Expand Down

0 comments on commit 0105f44

Please sign in to comment.