I recently stumbled upon this super simple way to create a dynamic slider in Webflow, I’ve seen it on quite some peoples wishlist so I made a small tutorial how to do just that!
The Slider demo on this page requires zero code. The slideshows are completely driven by markup.
All that is needed is to include jQuery and the Cycle2 plugin using script tags.
Wow, it’s a whole new way to make dynamic slider.
Another way to do it is to create a slider, put dynamic wraper on each slide and then use the filters.
Really interesting.
That’s weird it’s in my footer code. I saved and published. I obviously know the slides are there Cause I saw the second slide but not autoscrolling. I wonder if it could be the chrome browser.
@jbleroux Hi I was having an issue with it before as well. The link you provided is no longer working but I’m guessing it was the same problem I was having. If you share it again and the published link as well that would be great.
@jbleroux Try adding the scripts directly on the page before /body itself. Also, add this attribute to the cycle-slideshow: data-cycle-slides=“> div”. My slides weren’t autoplaying until I added it.
@jbleroux Sorry lol I meant the custom code section just worded it wrong.
“Cycle2 allows you to use any type of element for the slides, it’s not solely for cycling images. However, images are the default slide type so to use other elements you need to override the slides option as show on this page. The slides option can be set to any valid jQuery selector. The default value is > img which is a selector to find all image elements that are immediate children of the slideshow container.”
You are totally right! When I first created the slider I used auto-slide, later on I created the prev/next buttons which didn’t require that attribute so I deleted it and forgot to re-add it for the tutorial.
Thanks for pointing this out, I’ve updated the tutorial with this fix!
Thank you @Mikeyjay11 and @SidneyOttelohe now that I have my head wrapped around this it is working great. The previous/next suits my needs better as well.
@SidneyOttelohe thank you for this! I was trying to to figure out how to something like this using the CMS and your solution is perfect. I am using this for a testimonials section but want to choose which ones to display using the featured switch. Do you know of a way to make the slider honor a featured switch? My public link can be viewed here. The page with the dynamic slider is in the test folder and is called loader. Thanks.