/* Smooth Scrolling */
$(function() {
  $('ul.nav a').bind('click',function(event) {
    var $anchor = $(this);

    $('html, body').stop().animate({
      scrollTop: $($anchor.attr('href')).offset().top
    }, 1250,'easeInOutExpo');
    event.preventDefault();
  });
});

/* Navbar Scrollspy */
var start = $("#video").offset().top - 50;

$(document).scroll(function(){
  if($(this).scrollTop() > start) {
    // $('.custom-navbar').animate({"backgroundColor": "red"}, "slow");
    $('.mg-navbar').css({"visibility" : "visible"});
    console.log("Now you see me");
  } else {
    $('.mg-navbar').css({"visibility" : "hidden"});
    console.log("Now you don't");
  }
});

$('body').scrollspy({ target: '#mg-navbar-target' });

@@ -716,12 +716,532 @@
 target' %7D);%0A
+%0A/* ScrollMagic */%0A/*%0A$(function () %7B // wait for document ready%0A%09%09// init%0A%09%09var controller = new ScrollMagic.Controller(%7B%0A%09%09%09globalSceneOptions: %7B%0A%09%09%09%09triggerHook: 'onLeave'%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09// get all slides%0A%09%09var slides = document.querySelectorAll(%22div.section%22);%0A%0A%09%09// create scene for every slide%0A%09%09for (var i=0; i%3Cslides.length; i++) %7B%0A%09%09%09new ScrollMagic.Scene(%7B%0A%09%09%09%09%09triggerElement: slides%5Bi%5D%0A%09%09%09%09%7D)%0A%09%09%09%09.setPin(slides%5Bi%5D)%0A%09%09%09%09.addIndicators() // add indicators (requires plugin)%0A%09%09%09%09.addTo(controller);%0A%09%09%7D%0A%09%7D);%0A*/%0A

Disable parallax script