New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set initial slide index #396
Comments
I think this is related to: |
Indeed it is |
@linkit87 FWIW I hacked this with the following code in the optional array: onInit: function () {
setTimeout(function () {
$('.element').slickSetOption('speed', 0).slickGoTo(4).slickSetOption('speed', 300);
}, 10);
} |
Thanks @alexrussell |
Thanks @alexrussell, but this seems more like a workaround. |
Oh yeah it most certainly is. |
So basically what I'm seeing in the real world and what I think I'm reading here is just that "initialSlide" doesn't work at ALL; correct? |
To paraphrase Yzma from "Emperor's New Groove": Why do we even HAVE that option?! Workaround above works like a charm. |
@centerlinescores its tricky. Say you have 6 slides. slidesToScroll is 3. That makes the only navigable indexes 0 and 3. So if you put initialSlide: 2, it wont work. Do you have a particular use case that isn't working for you? |
Is there anyway to set initial slide to show without triggering the animation?
The text was updated successfully, but these errors were encountered: