yaodingyd / react-flickity-component

A React.js component for using @desandro's Flickity
314 stars 51 forks source link

wrapAround - First slide always disappears #106

Closed YCMitch closed 4 years ago

YCMitch commented 4 years ago

As soon as the page loads, my left slide is there for half a second, and then disappears. If I change slides, resize my browser etc it comes back, but there's nothing I can do to prevent it from occurring.

Screen Shot 2020-06-26 at 1 13 17 pm

Supposed to be this:

Screen Shot 2020-06-26 at 1 15 49 pm

But it jumps to this after half a second or so:

Screen Shot 2020-06-26 at 1 15 41 pm

What gives? Has anyone seen this, or know what my options are? I'd really rather not move back to Slick, but I dunno what else to try here.

There's a staged example here, if that helps.

lil-j commented 4 years ago

This has been happening to me as well.

YCMitch commented 4 years ago

Nobody has a solution? I'm gagging to find one - it's affecting all of my sliders...

YCMitch commented 4 years ago

Resolved by removing this component and using this.

usamecavga commented 3 years ago

I solved this problem by adding initialIndex: 2 to options. Hope to help you.