Created
July 24, 2019 15:10
-
-
Save itsdavidmorgan/8594391f0ff76b09bd59f5996297ce58 to your computer and use it in GitHub Desktop.
Purpose Theme Flexslider Setup Edited
This file contains hidden or 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
/* 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