jillmugge
4/22/2014 - 2:50 PM

Add Div to Builder (outside of Container) for parallax scroll

Add Div to Builder (outside of Container) for parallax scroll

function parallax(){
	var scrolled = jQuery(window).scrollTop();
	jQuery('.custom-bg').css('left', -(scrolled * 0.2) + 'px');
	jQuery('.custom-bg').css('top', -(scrolled *0.3) + 'px');
}
jQuery(window).scroll(function(e){
	parallax();
});