.scrollable-element { scrollbar-color: red yellow; /* red is for the thumb and yellow is for the track */ }
$(document).ready(function(){ $(window).scroll(function(){ if($(window).scrollTop() > $(window).height()){ $(".menu").css({"background-color":"transparent"}); } else{ $(".menu").css({"background-color":"white"}); } }) })
$(function () { $(document).scroll(function () { var $nav = $(".navbar-fixed-top"); $nav.toggleClass('scrolled', $(this).scrollTop() > $nav.height()); }); });