Skip to content

Instantly share code, notes, and snippets.

@mohhasbias
Created May 1, 2013 17:05
Show Gist options
  • Save mohhasbias/5496626 to your computer and use it in GitHub Desktop.
Save mohhasbias/5496626 to your computer and use it in GitHub Desktop.
example on using modified orbit foundation and lazyload. notice that each time the slide change, it triggers the lazyload to load the image.
$('.products-slider').orbit({
fluid: "1100x350",
timer: false,
afterSlideChange: function(){
this.$slides
.eq(this.activeSlide)
.find('img.lazyload').trigger('appear');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment