Team:Cornell/sandbox

From 2013.igem.org

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

Revision as of 04:48, 29 December 2013

Parallax Test

Whee

Project