Skip to content

Instantly share code, notes, and snippets.

@zackkitzmiller
Created May 21, 2010 21:52
Show Gist options
  • Save zackkitzmiller/409482 to your computer and use it in GitHub Desktop.
Save zackkitzmiller/409482 to your computer and use it in GitHub Desktop.
$expanded = 0;
$('.video img').click(function(){
if($expanded == 0) {
$(this).animate({
width: '720px'
}, 500, function(){
alert($(this).next('object'));
$(this).next('object').show('slow');
$expanded = 1;
});
} else {
$(this).animate({
width: '200px'
}, 500, function(){
$expanded = 0;
});
}
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment