Continuous slider
See original GitHub issueI have a slider that has some slides that are super long and some that are super short. I want to be able to set the transition speed on the fly by the width of the slide * 100 in milliseconds. The following code isn’t working, but could you help point me in the right direction?
var speed = 10000;
$(".scrolling").on('beforeChange', function(event, slick, currentSlide){
var currentSlide = $('.scrolling').find('.slick-active');
var currentSlidewidth = currentSlide.width()*100;
$('.slick-track').css('transition', 'transform' + currentSlidewidth + 'ms linear');
console.log(currentSlidewidth);
});
$('.scrolling').slick({
speed: speed,
autoplay: true,
autoplaySpeed: 0,
cssEase: 'linear',
slidesToShow: 1,
slidesToScroll: 1,
dots: false,
arrows: false,
variableWidth: true
});
http://jsfiddle.net/tpwidman/fmo50w7n/1564
====================================================================
Steps to reproduce the problem
- Set continuous slider settings
$(".slider").slick({
autoplay: true,
autoplaySpeed:0,
speed: 10000,
dots:false,
arrows:false,
cssEase:'linear',
dots: true,
variableWidth:true,
responsive: [{
breakpoint: 500,
settings: {
dots: false,
arrows: false,
infinite: false,
slidesToShow: 2,
slidesToScroll: 2
}
}]
});
====================================================================
What is the expected behaviour?
This is the expected behaviour. …
====================================================================
What is observed behaviour?
Shorter width slides are slower and longer slides are faster because of the width. …
====================================================================
More Details
- Which browsers/versions does it happen on? All browsers
- Which jQuery/Slick version are you using? most current
- Did this work before? No
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
Sliders – Material Design 3
Sliders allow users to make selections from a range of values. ... Diagram with continuous slider on left, discrete slider on right. 1....
Read more >Continuous Values Slider - IBM
A slider control that allows users to slide through numeric values between minimum and maximum values that you define, such as 0 and...
Read more >continuous - Documentation - Apple Developer
continuous. A Boolean value indicating whether changes in the slider's value generate continuous update events. iOS 2.0+ iPadOS 2.0+ Mac Catalyst 13.0+ ...
Read more >Logo slider with continuous animation
Note: This tutorial is for Smart Slider 3 Pro version only! In this tutorial we are going to create Showcase type slider, with...
Read more >Continuous Sliders - mEMA by ilumivu
Continuous Sliders allow you to present a visual analogue scale. The user slides a marker along a horizontal axis.
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
just replace in the slick.js library from the top to autoPlayClear. Then, just add continuousSliding: true; to your options. All I wrote were a couple of if statements and got the width of the slides.
I fixed this by updating the library to include a new parameter called continuousSliding