Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(function() {
var photos = $("div.photo");
$('div.slides a').click(function() {
var rel = $(this).attr('rel');
photos.fadeOut(800,function() {
$('#'+rel).fadeIn(800);
});
return false;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment