brc/brc_static/js/parallax.js

19 lines
266 B
JavaScript
Raw Normal View History

$(window).scroll(function() {
parallax();
})
function parallax() {
var wScroll = $(window).scrollTop()
// $('.parallax--bg').css('background-position', 'center ' + (wScroll*0.75)+'px');
// $('.parallax--box').css('top', -5 + (wScroll*.005)+'em')
}