I would like to know how to let the transition of this navbar with a smoother appearance
JavaScript code used to perform it:
var clientHeight = document.getElementById('header').clientHeight;
$(function(){
$(window).scroll(function(){
if ($(this).scrollTop() > clientHeight)
{
$('#navigation-bar').addClass('navbar-fixed-top');
} else {
$('#navigation-bar').removeClass('navbar-fixed-top');
}
});
});