Template:Team:KIT-Kyoto/hidelogo
From 2014.igem.org
(Difference between revisions)
(8 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
var browserheight = $(window).height(); | var browserheight = $(window).height(); | ||
- | if(browserheight <= | + | 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'}, | + | $(".hidelogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},800,'linear'); |
},3000); | },3000); | ||
+ | |||
+ | setTimeout(function(){ | ||
+ | $(".showlogo img").animate({'margin-top':'14px','margin-bottom':'-10px'},800,'linear'); | ||
+ | },1000); | ||
}; | }; | ||
Line 22: | Line 28: | ||
$(".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(){ | ||
Line 30: | Line 36: | ||
}); | }); | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
Latest revision as of 20:06, 21 September 2014