-
-
Save innbitcodes/4006312 to your computer and use it in GitHub Desktop.
jQuery: Generic settings for maximage demo.
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
$(function(){ | |
$('#maximage').maximage({ | |
cycleOptions: { | |
fx: 'fade', | |
// Speed has to match the speed for CSS transitions | |
speed: 1000, | |
timeout: 0, | |
prev: '#arrow_left', | |
next: '#arrow_right', | |
pause: 1 | |
}, | |
onFirstImageLoaded: function(){ | |
jQuery('#cycle-loader').hide(); | |
jQuery('#maximage').fadeIn('fast'); | |
}, | |
// cssBackgroundSize might be causing choppiness in retina display safari | |
cssBackgroundSize: false | |
}); | |
// Helper function to Fill and Center the HTML5 Video | |
jQuery('#html5video').maximage('maxcover'); | |
// To show it is dynamic html text | |
jQuery('.in-slide-content').delay(1200).fadeIn(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment