code to mkae navigation bar transparent and than turn it to white on scrolll code example
Example: javascript on scroll change nav color
$(function () {
$(document).scroll(function () {
var $nav = $(".navbar-fixed-top");
$nav.toggleClass('scrolled', $(this).scrollTop() > $nav.height());
});
});