Skip to content

Instantly share code, notes, and snippets.

@kaspergrubbe
Forked from anonymous/gist:76fa973b82a732594fce
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaspergrubbe/50dccd3d1ef02d262185 to your computer and use it in GitHub Desktop.
Save kaspergrubbe/50dccd3d1ef02d262185 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$(".zoomable").click (function() {
if($(this).height() == 480){
$(this).animate({
height: '980',
width: '980'
});
}else{
$(this).animate({
height: '480px',
width: '700px'
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment