akiran / akiran/react-slick

problem with responsive when mounting the component

Open
#2,333 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

When im in responsive mode this add a translate x value in slick-list and should be 0

```js
const settings = {
slidesToShow: 5,
slidesToScroll: 1,
speed: 500,
arrows: false,
infinite: false,
responsive: [
{
breakpoint: 1300,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
},
},
{
breakpoint: 1600,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
},
},
],
}
```

![image](https://github.com/akiran/react-slick/assets/67299584/1fb16025-efb0-4e8f-9a30-12f93e82138f)

only after touching next or prev does it look good
![image](https://github.com/akiran/react-slick/assets/67299584/b82bb3a3-17e1-4bac-9cbc-95f8e522c7e0)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.