image flicker when loading carousel on iphone
- Lenguaje dominante
- JavaScript
- Estrellas
- 11.9k
- Forks
- 2.1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
"react-slick": "^0.25.2",
So I'm having an issue when a carousel page is visited on iPhone, it works perfectly on pc, in which there's a momentary flicker because image position 1 is loaded first then quickly reverts to image position 0, even though `initialSlide: 0`. How do I resolve this?
My code is as follows:
```
const settings = {
dots: true,
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
speed: 2000,
autoplaySpeed: 2000,
initialSlide: 0,
cssEase: "linear"
}
return (
{dataSource.map((src, index) => (
))}
)
```
You can see the issue at https://frontend.theomer.co.uk/ when you click any item.
My repo can be found here: https://github.com/TheoMer/Prisma2-Migration
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.