Template:ETHZ Basel10 Teaser
From 2010.igem.org
(Difference between revisions)
Line 134: | Line 134: | ||
//Show Banner | //Show Banner | ||
$(".main_image .desc").show(); //Show Banner | $(".main_image .desc").show(); //Show Banner | ||
- | $(".main_image .block").animate({ opacity: 0.85 } | + | $(".main_image .block").animate({ opacity: 0.85 } ); //Set Opacity |
//Click and Hover events for thumbnail list | //Click and Hover events for thumbnail list | ||
Line 149: | Line 149: | ||
} else { | } else { | ||
//Animate the Teaser | //Animate the Teaser | ||
- | $(".main_image .block").animate({ opacity: 0 | + | $(".main_image .block").animate({ opacity: 0.85} , function() { |
- | $(".main_image .block").html(imgDesc | + | $(".main_image .block").html(imgDesc); |
$(".main_image img").attr({ src: imgTitle , alt: imgAlt}); | $(".main_image img").attr({ src: imgTitle , alt: imgAlt}); | ||
}); | }); |
Revision as of 08:00, 20 October 2010