Team:Brown-Stanford/Templates/Main

From 2011.igem.org

(Difference between revisions)
Line 345: Line 345:
.stop(true)
.stop(true)
.animate({
.animate({
-
'width':'100px',
+
'width':'170px',
-
'height':'100px',
+
'height':'170px',
'left':'0px'
'left':'0px'
},400,'easeOutBack')
},400,'easeOutBack')
Line 352: Line 352:
.find('.sdt_wrap')
.find('.sdt_wrap')
    .stop(true)
    .stop(true)
-
.animate({'top':'110px'},500,'easeOutBack')
+
.animate({'top':'140px'},500,'easeOutBack')
.andSelf()
.andSelf()
.find('.sdt_active')
.find('.sdt_active')
    .stop(true)
    .stop(true)
-
.animate({'height':'100px'},300,function(){
+
.animate({'height':'170px'},300,function(){
var $sub_menu = $elem.find('.sdt_box');
var $sub_menu = $elem.find('.sdt_box');
if($sub_menu.length){
if($sub_menu.length){
-
var left = '100px';
+
var left = '170px';
if($elem.parent().children().length == $elem.index()+1)
if($elem.parent().children().length == $elem.index()+1)
-
left = '-100px';
+
left = '-170px';
$sub_menu.show().animate({'left':left},200);
$sub_menu.show().animate({'left':left},200);
}
}

Revision as of 00:54, 9 June 2011