Team:Cornell/sandbox
From 2013.igem.org
(Difference between revisions)
Line 330: | Line 330: | ||
function parallaxScroll(){ | function parallaxScroll(){ | ||
var scrolled = $(window).scrollTop(); | var scrolled = $(window).scrollTop(); | ||
- | $('.parallax').css('left', scrolled / | + | $('.parallax').css('left', scrolled / 10+'px'); |
} | } | ||
</script> | </script> |
Revision as of 02:51, 29 December 2013