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 }, 1 ); //Set Opacity
+
$(".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, marginBottom: -imgDescHeight }, 250 , function() {
+
$(".main_image .block").animate({ opacity: 0.85} , function() {
-
$(".main_image .block").html(imgDesc).animate({ opacity: 0.85, marginBottom: "0" }, 250 );
+
$(".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