Created
July 24, 2019 15:08
-
-
Save itsdavidmorgan/1f4e99469e3ada9e2188d4126943d97d to your computer and use it in GitHub Desktop.
Purpose Theme Flexslider Setup
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
/* 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