Team:Cornell/sandbox
From 2013.igem.org
(Difference between revisions)
Line 341: | Line 341: | ||
$(".parallax, .screen").each(function() { | $(".parallax, .screen").each(function() { | ||
var speed = parseInt($(this).data('speed'), 10); //in milliseconds | var speed = parseInt($(this).data('speed'), 10); //in milliseconds | ||
- | $(this).animate( { left: '-=100%' }, | + | $(this).animate( { left: '-=100%' }, 1000); //move to the right |
}); | }); | ||
} | } | ||
Line 353: | Line 353: | ||
$(".parallax, .screen").each(function() { | $(".parallax, .screen").each(function() { | ||
var speed = parseInt($(this).data('speed'), 10); //in milliseconds | var speed = parseInt($(this).data('speed'), 10); //in milliseconds | ||
- | $(this).animate( { left: '+=100%' }, | + | $(this).animate( { left: '+=100%' }, 1000); //move to the left |
}); | }); | ||
} | } |
Revision as of 19:17, 1 January 2014