Team:Tsinghua/header

From 2011.igem.org

(Difference between revisions)
Line 38: Line 38:
var dpad = 0;
var dpad = 0;
dpad = Math.round($(this).attr("offsetWidth")/10);
dpad = Math.round($(this).attr("offsetWidth")/10);
-
dpad = dpad + "px";
+
dpad = 25-dpad;
 +
dpad += "px";
$(this).animate({"fontSize": "22px", "paddingTop": "4px", "paddingLeft": dpad, "paddingRight": dpad}, 400, function(){
$(this).animate({"fontSize": "22px", "paddingTop": "4px", "paddingLeft": dpad, "paddingRight": dpad}, 400, function(){
     $(this).animate({"fontSize": "18px", "paddingTop": "5px", "paddingLeft": "25px", "paddingRight": "25px"}, 200)});
     $(this).animate({"fontSize": "18px", "paddingTop": "5px", "paddingLeft": "25px", "paddingRight": "25px"}, 200)});

Revision as of 13:42, 17 August 2011