Team:Cornell/sandbox

From 2013.igem.org

(Difference between revisions)
Line 323: Line 323:
         }).remove();
         }).remove();
 +
var speed = 0;
//parallax
//parallax
$("h1").click( function() {
$("h1").click( function() {
$(".parallax").animate( { left: '-=100%' },  
$(".parallax").animate( { left: '-=100%' },  
{ step: function(now, fx) {
{ step: function(now, fx) {
-
var speed = 1000 * parseInt($(this).data('speed'), 10);
+
speed = 1000 * parseInt($(this).data('speed'), 10);
},
},

Revision as of 23:30, 29 December 2013

Parallax Test

Whee

Project