Useful for those who looking to implement advanved slider in Webflow.
Slick JS Slider is a very popular and widely used by the developer community as a website slider for banners and galleries.
I hope you already have a project created in Webflow if not then create a new one now.
Adding a CMS based website slider using Slick JS takes only 5 steps:
I created a dummy collection named Galleries (see picture below). Add custom fields as per your requirements. Here I'm just adding an Image field.
Once you've created your collection successfully. Close the collection tab and go to your desired page where you want to display the slider.
Add a new Collection List Wrapper from elements or just hit CTRL+E to open search bar in Webflow. Create a structure just like given below image.
If you look at above collection list wrapper structure, I gave meaningful names to my lists and items for better understanding in the future and you should that kind of approach too in your projects.
Let me show you how slick slider works in a normal HTML page.
Without adding CSS files/links your Slick Slider won't work. Go to your project settings and click on Custom Code Tab. Just scroll down a bit and you'll see that <head> code where you can paster below links in given order.
We will add 2 Slick Slider CSS libraries from www.cdnjs.com
In your custom code tab, scroll down once you finished adding your CSS files in <head> area. you'll see </body> tag area where you can add some CDN libraries for Slick Slider and Jquery.
See the picture below to learn how I added those scripts in my Webflow custom code section.
Import these scripts into your Webflow project under <script> at page level code.
To initialize slick slider in your Webflow project you need to add these code block at page level. See the given picture below.
As you can see in the above given code snippet. I'm calling .your-class that I have declared in my collection list wrapper at lists level. Check the HTML Markup section of this post at the top.
Here's code for you to just copy and paste inside your <script> at page level.
There are many things you can perform with Slick Slider like showing arrows, dots, auto play and responsive settings. To learn more about them check out their settings section on this page https://kenwheeler.github.io/slick/
Once all of the above steps are done just publish your project on Webflow staging site. Here's my project link https://testing-my-ideas.webflow.io/slick-slider-demo
We at TweakDesigns help businesses like yours with website building and SEO implementation. If you find any difficulty installing plugins or want to know more then you can mail us at email@example.com or you can subscribe to our newsletter where we share lots of cool stuff for better website design and development.
Schedule your free consultation with one of our Webflow Experts. No obligation. No reason not to.Schedule your meeting now!