Template:OUC-China.CommonCSS
From 2011.igem.org
(Difference between revisions)
Line 242: | Line 242: | ||
$($(this).attr("href")).stop(true,true).animate({opacity:0.9}, 200); | $($(this).attr("href")).stop(true,true).animate({opacity:0.9}, 200); | ||
var bg = $($(this).attr("href")).attr("tag"); | var bg = $($(this).attr("href")).attr("tag"); | ||
- | $("#mainnav").stop().animate({backgroundPosition:"(-"+bg+"px 0px)"}, {duration:200}); | + | $("#mainnav").stop().animate({backgroundPosition:"(-"+bg+"px 0px)"}, {duration:200,easing:'swing'}); |
}); | }); | ||
$(".navitem").click(function(){ | $(".navitem").click(function(){ |
Revision as of 05:30, 5 October 2011