Template:Team:KIT-Kyoto/hidelogo
From 2014.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
if(browserheight <= 730){ | if(browserheight <= 730){ | ||
$('.toplogo').addClass('hidelogo'); | $('.toplogo').addClass('hidelogo'); | ||
+ | $('.toplogo').removeClass('showlogo'); | ||
}else{ | }else{ | ||
$('.toplogo').removeClass('hidelogo'); | $('.toplogo').removeClass('hidelogo'); | ||
+ | $('.toplogo').addClass('showlogo'); | ||
} | } | ||
setTimeout(function(){ | setTimeout(function(){ | ||
$(".hidelogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},1000,'linear'); | $(".hidelogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},1000,'linear'); | ||
+ | },3000); | ||
+ | }; | ||
+ | |||
+ | setTimeout(function(){ | ||
+ | $(".showlogo img").animate({'margin-top':'14px','margin-bottom':'-10px'},1000,'linear'); | ||
},3000); | },3000); | ||
}; | }; | ||
Line 22: | Line 29: | ||
$(".hidelogo").hover( | $(".hidelogo").hover( | ||
function(){ | function(){ | ||
- | $(".hidelogo img").stop().animate({'margin-top':'14px','margin-bottom':' | + | $(".hidelogo img").stop().animate({'margin-top':'14px','margin-bottom':'-10px'},400,'swing'); |
}, | }, | ||
function(){ | function(){ |
Revision as of 15:21, 21 September 2014