Team:Heidelberg/Team
From 2013.igem.org
(Difference between revisions)
m |
|||
Line 177: | Line 177: | ||
function stopAnimation() { | function stopAnimation() { | ||
- | + | animated = false; | |
var images = $('.teamimage'); | var images = $('.teamimage'); | ||
images.stop(); | images.stop(); | ||
Line 186: | Line 186: | ||
var wdiff = (w - picsperside.h * 150) / (picsperside.h - 1) | var wdiff = (w - picsperside.h * 150) / (picsperside.h - 1) | ||
var rightmost = (picsperside.h - 1) * (150 + wdiff); | var rightmost = (picsperside.h - 1) * (150 + wdiff); | ||
+ | var bottommost = (picsperside.v - 1) * (150 - wdiff); | ||
for (var i = 0; i < picsperside.h; ++i, ++currpic) { | for (var i = 0; i < picsperside.h; ++i, ++currpic) { | ||
$(images[currpic]).animate({"left": i * (150 + wdiff), "top": 0}); | $(images[currpic]).animate({"left": i * (150 + wdiff), "top": 0}); | ||
Line 199: | Line 200: | ||
} | } | ||
for (var i = 0; i < picsperside.h; ++i, ++currpic) { | for (var i = 0; i < picsperside.h; ++i, ++currpic) { | ||
- | $(images[currpic]).animate({"left": i * (150 + wdiff), " | + | $(images[currpic]).animate({"left": i * (150 + wdiff), "top": picsperside.h * 170}); |
- | $(images[currpic]).css({"top": '', " | + | $(images[currpic]).css({"top": '', "bottom": ''}); |
} | } | ||
} | } |
Revision as of 02:06, 29 October 2013