Difference between revisions of "Template:Melbourne"

Line 8: Line 8:
  
 
function scrollFunction() {
 
function scrollFunction() {
   if (document.body.scrollTop > 15 || document.documentElement.scrollTop > 15) {
+
   if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
 
     document.getElementById("navbar").style.top = "0";
 
     document.getElementById("navbar").style.top = "0";
  }
 
else {
 
    document.getElementById("navbar").style.top = "-20px";
 
 
   }
 
   }
  
Line 87: Line 84:
 
     background-color: #333; /* Black background color */
 
     background-color: #333; /* Black background color */
 
     position: fixed; /* Make it stick/fixed */
 
     position: fixed; /* Make it stick/fixed */
     top: 50px; /* Hide the navbar 50 px outside of the top view */
+
     top: 35px; /* Hide the navbar 50 px outside of the top view */
 
     width: 100%; /* Full width */
 
     width: 100%; /* Full width */
 
     transition: top 0.3s; /* Transition effect when sliding down (and up) */
 
     transition: top 0.3s; /* Transition effect when sliding down (and up) */

Revision as of 12:29, 6 October 2018