Team:NYMU-Taipei/Templates/Header/menubar

From 2011.igem.org

(Difference between revisions)
Line 163: Line 163:
.stop(true)
.stop(true)
.animate({
.animate({
-
'width':'161px',
+
'width':'155px',
-
'height':'161px',
+
'height':'155px',
'left':'0px'
'left':'0px'
},400,'easeOutBack')
},400,'easeOutBack')
Line 174: Line 174:
.find('.sdt_active')
.find('.sdt_active')
    .stop(true)
    .stop(true)
-
.animate({'height':'161px'},300,function(){
+
.animate({'height':'155px'},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 = '161px';
+
var left = '155px';
if($elem.parent().children().length == $elem.index()+1)
if($elem.parent().children().length == $elem.index()+1)
-
left = '-161px';
+
left = '-155px';
$sub_menu.show().animate({'left':left},200);
$sub_menu.show().animate({'left':left},200);
}
}

Revision as of 03:26, 6 October 2011

Slide Down Box Menu with jQuery and CSS3