Template:Team:KIT-Kyoto/hidelogo
From 2014.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
$(this).addClass('hidelogo'); | $(this).addClass('hidelogo'); | ||
},3000); | },3000); | ||
- | + | var hide = $("div").hasClass('hidelogo'); | |
- | + | ||
- | + | ||
- | var hide = $("div").hasClass( | + | |
- | + | ||
if(hide){ | if(hide){ | ||
+ | $(".toplogo img").hover(function(){ | ||
$(".toplogo img").stop().animate({'margin-top':'0px','margin-bottom':'0px'},1000,'linear'); | $(".toplogo img").stop().animate({'margin-top':'0px','margin-bottom':'0px'},1000,'linear'); | ||
- | + | } | |
- | + | function(){ | |
$(this).stop().animate({'margin-top':'-40px','margin-bottom':'-65px'}); | $(this).stop().animate({'margin-top':'-40px','margin-bottom':'-65px'}); | ||
- | |||
} | } | ||
- | + | ); | |
</script> | </script> |
Revision as of 17:14, 20 September 2014