Skip to content

Instantly share code, notes, and snippets.

@itsdavidmorgan
Created July 24, 2019 15:08
Show Gist options
  • Save itsdavidmorgan/1f4e99469e3ada9e2188d4126943d97d to your computer and use it in GitHub Desktop.
Save itsdavidmorgan/1f4e99469e3ada9e2188d4126943d97d to your computer and use it in GitHub Desktop.
Purpose Theme Flexslider Setup
/* Flexslider ---------------------*/
function flexSliderSetup() {
if( ($).flexslider) {
var slider = $('.flexslider');
slider.fitVids().flexslider({
slideshowSpeed : slider.attr('data-speed'),
animationDuration : 600,
animation : 'fade',
video : false,
useCSS : false,
prevText : '<i class="fa fa-angle-left"></i>',
nextText : '<i class="fa fa-angle-right"></i>',
touch : false,
animationLoop : true,
smoothHeight : true,
pauseOnAction : true,
pauseOnHover : true,
start: function(slider) { // Fires when the slider loads the first slide
slider.removeClass('loading');
$( ".preloader" ).hide();
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment