Going from first to last slide, or from last to first slide, on infinite mode doesn't animate
See original GitHub issueHey there. In my solution, I wanted the next/previous slides to have a scale of 75%, and the centered one with 100% scale.
I’m using the following settings:
$('#slick-carousel').slick({
autoplay: true,
arrows: false,
centerMode: true,
dots: true,
slidesToShow: 1,
centerPadding: '295px',
infinite: true
});
In my CSS I have the following:
#slick-carousel .slick-slide.slick-active.slick-center {
-webkit-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
#slick-carousel .slick-slide {
-webkit-transform: scale(0.75);
-ms-transform: scale(0.75);
-o-transform: scale(0.75);
transform: scale(0.75);
-webkit-transition: all .3s linear;
-o-transition: all .3s linear;
transition: all .3s linear;
}
It works great, unless when I slide from last to first slide, or from the first to last slide. Any thoughts on that? I’d appreciate any help.
Thanks in advance.
Issue Analytics
- State:
- Created 9 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Slick carousel animation blinking after the last slide / cloned ...
The CSS3 animation doesn't apply and users experience a blink. One way to avoid the bug animation at the end of infinite rotation...
Read more >slick slider - css transition infinite loop bug - Stack Overflow
With Slick Slider, adding a delay to the transition helps to make it ... the animation looks OK when sliding from last to...
Read more >Set the start time and speed of an animation effect
To start the animation when you click the slide, select On Click. To start the animation at the same time as the previous...
Read more >PowerPoint Slide Doesnt Move! - Presentation Process
Comments for PowerPoint Slide Doesn't Move! Solution: Go to your slideshow tab > Custom Slideshow and check if you have any listed there...
Read more >How to loop and auto advance your Google Slides - YouTube
Presenting in a team meeting with Google Slides, but don't want to manually change each slide when it's time? In this episode of...
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
This doesn’t seem to be fixed in 1.6.0 yet.
As @nickmelville described, when transitioning from the first or last slide to the cloned one on an infinite Slick slider, the
slick-active
class isn’t applied to the clone.It feels wrong having to resort to
centerMode: true
to work around the problem.First, thanks @kenwheeler for this awesome piece of work!
For those of you who are still facing this issue in the 1.8.0 version, I was able to get rid of it by downgrading to 1.6.0.