Team:Cornell/sandbox

From 2013.igem.org

(Difference between revisions)
Line 328: Line 328:
if (e.which == 40 || e.which == 39) {  
if (e.which == 40 || e.which == 39) {  
if($("#far-right").css('left') > '100%') { //only scroll if we haven't reached the far right
if($("#far-right").css('left') > '100%') { //only scroll if we haven't reached the far right
 +
alert($("#far-right").css('left'));
$(".parallax").each(function() {
$(".parallax").each(function() {
var speed = 10 * parseInt($(this).data('speed'), 10);
var speed = 10 * parseInt($(this).data('speed'), 10);

Revision as of 02:11, 30 December 2013

Parallax Test

Whee

Project