image flicker when loading carousel on iphone
- Vorherrschende Sprache
- JavaScript
- Sterne
- 11.9k
- Forks
- 2.1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
"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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.