var portfolioView = {};

// Hide sections once user clicks on main nav
portfolioView.handleNav = function () {
  $('.main_nav').on('click', '.portfolio li', function(event){
    var navEl = $(this).find('a').attr('href');
    event.preventDefault();
    $('#about, #projects, #contact').hide();
    $(navEl).fadeIn().scroll();
  });
};

// Expand and Collapse project descriptions
portfolioView.learnMoreExpand = function () {
  $('.project_description *:nth-of-type(n+2)').hide();
  $('#projects').on('click', '.learn_more', function(event){
    event.preventDefault();
    $(this).prev().children('.project_description *:nth-of-type(n+2)').fadeIn();
    $(this).html('Collapse  &rarr;').removeClass('learn_more').addClass('learn_more_collapse');
  });
};
portfolioView.learnMoreCollapse = function () {
  $('#projects').on('click', '.learn_more_collapse', function(event) {
    event.preventDefault();
    $(this).prev().children('.project_description *:nth-of-type(n+2)').fadeOut();
    $(this).html('Learn more  &rarr;').removeClass('learn_more_collapse').addClass('learn_more');
  });
};

// Invoke all functions
portfolioView.handleNav();
portfolioView.learnMoreExpand();
portfolioView.learnMoreCollapse();

@@ -635,21 +635,24 @@
 (n+2)').
-fadeI
+slideDow
 n();%0A   
@@ -975,15 +975,15 @@
 )').
-fadeOut
+slideUp
 ();%0A

change fade in to slide down