Skip to content

Instantly share code, notes, and snippets.

@Crystalh
Created June 30, 2010 10:32
Show Gist options
  • Save Crystalh/458499 to your computer and use it in GitHub Desktop.
Save Crystalh/458499 to your computer and use it in GitHub Desktop.
//fadeIn() not working properly in below example. Next image suddenly appears without easing in. Slowing down the transition to 3sec made no difference.
var that = this;
if(glow('img.show').length){
glow('img.show').anim(1, {
'opacity': 0
}).on('complete', function(){
glow('img.show').removeClass("show").css("display", "none");
glow('#'+that.pages[that.currentPage].assets[itemIndex%that.pageSize].id).addClass("show").fadeIn(3);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment