Team:University College London/js/radio
From 2012.igem.org
(Difference between revisions)
(Created page with "$(document).ready(function(){ $('#slidecontainer').children().first().show(); });") |
m |
||
Line 1: | Line 1: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | $('#slidecontainer').children().first().show(); | + | var episodes = $('#slidecontainer').children(); |
+ | episodes.first().show(); | ||
+ | |||
+ | var currentEpisode = episodes.first(); | ||
+ | |||
+ | currentEpisode.find('.bg').animate({bottom:0px;opacity:0.8},500,function({ | ||
+ | currentEpisode.find('.desc').show(300); }); | ||
+ | |||
+ | |||
}); | }); |
Revision as of 08:34, 15 August 2012
$(document).ready(function(){
var episodes = $('#slidecontainer').children(); episodes.first().show();
var currentEpisode = episodes.first();
currentEpisode.find('.bg').animate({bottom:0px;opacity:0.8},500,function({ currentEpisode.find('.desc').show(300); });
});