Team:Cornell/sandbox

From 2013.igem.org

(Difference between revisions)
Line 342: Line 342:
var speed = parseInt($(this).data('speed'), 10); //in milliseconds
var speed = parseInt($(this).data('speed'), 10); //in milliseconds
var dist = parseInt($(this).data('dist'), 10); //in percentages
var dist = parseInt($(this).data('dist'), 10); //in percentages
-
$(this).animate( { left: '-='dist }, speed);  
+
$(this).animate( { left: '-=' + dist }, speed);  
});
});
}
}
Line 355: Line 355:
var speed = parseInt($(this).data('speed'), 10); //in milliseconds
var speed = parseInt($(this).data('speed'), 10); //in milliseconds
var dist = parseInt($(this).data('dist'), 10);
var dist = parseInt($(this).data('dist'), 10);
-
$(this).animate( { left: '+='dist }, speed);  
+
$(this).animate( { left: '+=' + dist }, speed);  
});
});
}
}

Revision as of 19:34, 1 January 2014

Parallax Test

Parallax Design 1.2

Inspired by this site --->

(Yeah I stole the background)

Use the arrow keys to navigate -->

These pages can replace sliders

And have pretty pictures that link to project pages

This means design will be really important
It also takes a ton of time to set the page up cause I have to position everything manually
Whee!

Yay! Parallax

(Nupur's awesome)