Template:Team:KIT-Kyoto/hidelogo

From 2014.igem.org

(Difference between revisions)
Line 4: Line 4:
setTimeout(function(){
setTimeout(function(){
$(".toplogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},1000,'linear');
$(".toplogo img").animate({'margin-top':'-40px','margin-bottom':'-65px'},1000,'linear');
-
$(this).addClass('hidelogo');
+
$("toplogo img").addClass('hidelogo');
},3000);
},3000);
});
});
$(function(){
$(function(){
-
$(".toplogo").has('.hidelogo').hover(
+
$(".toplogo").has('img.hidelogo').hover(
function(){
function(){
$(".toplogo img").stop().animate({'margin-top':'14px','margin-bottom':'0px'},400,'swing');
$(".toplogo img").stop().animate({'margin-top':'14px','margin-bottom':'0px'},400,'swing');

Revision as of 17:55, 20 September 2014