Team:Tec-Monterrey/video

From 2011.igem.org

(Difference between revisions)
Line 339: Line 339:
var stepHeight = contentHeight / PANEL_ANIMATION_STEPS;
var stepHeight = contentHeight / PANEL_ANIMATION_STEPS;
var direction = (!expanding ? -1 : 1);
var direction = (!expanding ? -1 : 1);
-
+
if (direction > 0)
 +
collapseAll();
setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY);
setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY);
}
}

Revision as of 03:38, 23 September 2011

wiki