sydorT
6/18/2017 - 4:54 PM

Smooth Parallax Scroll

Smooth Parallax Scroll

$(window).scroll(function() {

	var st = $(this).scrollTop() /10;

	$(".object").css({
		"transform" : "translate3d(0px, " + st  + "%, .01px)",
		"-webkit-transform" : "translate3d(0px, " + st  + "%, .01px)"
	});

});