Created
November 4, 2016 18:01
-
-
Save wluisi/be7b2abc82002baa5694cf2c741e32f2 to your computer and use it in GitHub Desktop.
Flexslider/Flexloader Drupal Example
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
(function($) { | |
Drupal.behaviors.cc_slider__flexslider = { | |
attach: function (context, settings) { | |
$(window).load(function() { | |
$('.flexslider').flexslider({ | |
animation: "slide", | |
controlNav: true, | |
slideshow: false, | |
// Wire up flexloader | |
start: function(slider) { | |
$.flexloader(slider); | |
}, | |
after: function(slider) { | |
$.flexloader(slider); | |
} | |
}); | |
}); | |
} | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment