Horje
change nav background color on scroll css without bootstrap Code Example
javascript on scroll change nav color
$(function () {
  $(document).scroll(function () {
    var $nav = $(".navbar-fixed-top");
    $nav.toggleClass('scrolled', $(this).scrollTop() > $nav.height());
  });
});
change nav background color on scroll css without bootstrap
<script>
  $(document).ready(function()
  $(window).scroll(function(){
   var scroll = $(window).scrollTop();
     if(scroll>50){
      $("#nav").css("background", "#555");
       }
       else {
      $("#nav").css("background", "transparent");
       }
      })
   })
</script>




Css

Related
input on Internet explore has close icon Code Example input on Internet explore has close icon Code Example
calculadora Code Example calculadora Code Example
responsive css webpage code Code Example responsive css webpage code Code Example
button slanted slide on hover Code Example button slanted slide on hover Code Example
nice select scroll bar for large amount of options Code Example nice select scroll bar for large amount of options Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11