slider not funtion if SlidesToShow equal to sliders
See original GitHub issueif SlidesToShow is equal to num of Sliders it is not working
but i need it for the Nav Slider
$('.slider').slick({
infinite: true,
speed: 300,
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
asNavFor: '.slider-nav',
draggable: mobile
});
$('.slider-nav').slick({
slidesToShow: 3,
slidesToScroll: 1,
dots: true,
centerMode: true,
focusOnSelect: true,
arrows: false,
asNavFor: '.slider'
});
<div class="slider-nav">
<div><span class="menu-entry">1</span></div>
<div><span class="menu-entry">2</span></div>
<div><span class="menu-entry">3</span></div>
</div>
<div class="slider">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
Issue Analytics
- State:
- Created 9 years ago
- Comments:45 (15 by maintainers)
Top Results From Across the Web
Slick slider not loading slides if slidesToShow is equal to the ...
problem is when slideToShow is equal to total number of slides than slider didn't load properly and didn't slide I want to know...
Read more >slick - the last carousel you'll ever need - Ken Wheeler
slick is a responsive carousel jQuery plugin that supports multiple breakpoints ... Fully functional when not. ... slidesToShow, int, 1, # of slides...
Read more >Solved: Slider not working properly - Shopify Community
Solved: Hi, I have a slider section with up to 8 slides but i can't seem to understand why the images will not...
Read more >How to Use the Image Carousel Widget - Elementor
Click Add Image button to select images to display. · Image Size: Choose the size of the image, from thumbnail to full, or...
Read more >Breakpoint Arrows Don't work well with variable slides - Drupal
Long story short, arrows do not always work when using breakpoints. ... Settings -> Slides to show is less than 5 (can't be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thats by default. If you show 3 slides, and there are only 3 slides, what are you going to slide?
I have fixed this like this.
Slick.prototype.setupInfinite = function() {
Slick.prototype.buildArrows = function() {
Slick.prototype.postSlide = function(index) {
ChangeSlide Slick.prototype.changeSlide = function(event, dontAnimate) {
};
InfiteArrowEvents()
Slick.prototype.initArrowEvents = function() {
So far, there is only change for ( > ). I changed it to ( >= ).
The last is important. 6. getLeft()
Slick.prototype.getLeft = function(slideIndex) {
My example is slidecount = 3, slidesToShow=3, slidestoScroll =3. the slidesToshow is not concerned so much.
I hope this can be helpful who uses the slick. Thanks kenwheeler. Your Slick.js supports me so much. Thanks again.