Skip to content

Instantly share code, notes, and snippets.

@azedo
Last active February 1, 2019 20:30
Show Gist options
  • Save azedo/7519959 to your computer and use it in GitHub Desktop.
Save azedo/7519959 to your computer and use it in GitHub Desktop.
How to use flexslider with multiple lines. (I used this code inside wordpress with the ACF gallery addon, but you can adapt it and use it anywhere you want)
// Flexslider init function
$('.img-gallery').flexslider({
animation: "slide", //String: Select your animation type, "fade" or "slide"
controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
pauseOnHover: true, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
animationLoop: false,
slideshow: false,
itemWidth: 960,
move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment