Skip to content

Commit d8c89b8

Browse files
authored
Merge pull request #121 from billdevcode/feature-branch
Change navbar color when scrolling
2 parents 1210b0a + f547c36 commit d8c89b8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $(document).ready(function() {
66
var checkPosition = false;
77

88
if (scrollPosition >= 1000 && !checkPosition) {
9-
$("#navbar").css("background", "#222");
9+
$("#navbar").css("background", "#dddddd");
1010
checkPosition = true;
1111
} else if (scrollPosition < 1000) {
1212
$("#navbar").css("background-color", "transparent");

stylesheets/stylesheet.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ html, body {
2121
transition: all 0.8s ease;
2222
}
2323

24+
.navbar-inverse .btn-link {
25+
/*color: #9d9d9d;*/
26+
}
27+
2428
.navbar-right a {
2529
font-size: 1.8em;
2630
}

0 commit comments

Comments
 (0)