Created
May 1, 2013 17:05
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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