Skip to content

Instantly share code, notes, and snippets.

@innbitcodes
Forked from akv2/maximage-generic.js
Created November 3, 2012 06:40
Show Gist options
  • Save innbitcodes/4006312 to your computer and use it in GitHub Desktop.
Save innbitcodes/4006312 to your computer and use it in GitHub Desktop.
jQuery: Generic settings for maximage demo.
$(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