Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
sau-mili committed Jul 28, 2024
1 parent da2a94c commit c651508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,15 @@
});

</script>

<!-- sticky animation -->
<script type="text/javascript">
window.addEventListener("scroll", function () {
var header = document.querySelector("nav");
header.classList.toggle("sticky", window.scrollY > 50)
})
</script>

<div id="pre-loader">
<h1>TourGuide . . .</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ body {
z-index: 10000;
transition: all 0.6s;
}

/* navbar sticky css */
.sticky{
/* margin: 10px 5px; */
border-radius: 10px;
Expand Down

0 comments on commit c651508

Please sign in to comment.