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