Skip to content

Instantly share code, notes, and snippets.

@itsdavidmorgan
Created July 24, 2019 15:10
Show Gist options
  • Save itsdavidmorgan/8594391f0ff76b09bd59f5996297ce58 to your computer and use it in GitHub Desktop.
Save itsdavidmorgan/8594391f0ff76b09bd59f5996297ce58 to your computer and use it in GitHub Desktop.
Purpose Theme Flexslider Setup Edited
/* Flexslider ---------------------*/
function flexSliderSetup() {
if( ($).flexslider) {
var slider = $('.flexslider');
slider.fitVids().flexslider({
slideshowSpeed : slider.attr('data-speed'),
animationDuration : 600,
animation : 'slide',
video : false,
useCSS : false,
prevText : '<i class="fa fa-angle-left"></i>',
nextText : '<i class="fa fa-angle-right"></i>',
touch : true,
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