Scroll page parallax when I click on navigation menu (Parallax Scrolling)

You did not read my post properly.

You’ve missed the closing brackets from that routine which means you break the next routine.

i.e. this is missing });

This is what that last section should look like.

$('a.back-to-top, a.simple-back-to-top').click(function() {
	$('html, body').animate({
		scrollTop: 0
	}, 700);
	return false;
});

$(document).ready(function(){
	$('a[href^="#"]').on('click',function (e) {
	    e.preventDefault();

	    var target = this.hash;
	    var $target = $(target);

	    $('html, body').stop().animate({
	        'scrollTop': $target.offset().top
	    }, 900, 'swing', function () {
	        window.location.hash = target;
	    });
	});
});
3 Likes