Team:Cornell/sandbox

From 2013.igem.org

(Difference between revisions)
Line 325: Line 325:
//parallax
//parallax
$("h1").click( function() {
$("h1").click( function() {
-
$(".parallax").animate({ left: '-=100%' }, 600, function() {
+
var speed = 600;
 +
$(".parallax").animate({ left: '-=100%' }, speed, function() {
alert(1000 * $(this).data('speed'));
alert(1000 * $(this).data('speed'));
});
});

Revision as of 04:49, 29 December 2013

Parallax Test

Whee

Project