This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jump=function(e){ | |
//prevent the "normal" behaviour which would be a "hard" jump | |
e.preventDefault(); | |
//Get the target | |
var target = $(this).attr("href"); | |
//perform animated scrolling | |
if(target =='#home' || target=='#about'|| target=='#portfolio' || target=='#contact'){ | |
$('html,body').animate( | |
{ | |
//get top-position of target-element and set it as scroll target |