souporserious / react-view-pager

Slider/Carousel powered by React Motion.
http://souporserious.github.io/react-view-pager/
MIT License
293 stars 46 forks source link

onReady event for FOUC? #34

Closed souporserious closed 7 years ago

souporserious commented 7 years ago

Thinking it would be useful to have an onReady event that way we can do things like fade the pager in once it has calculated everything. Maybe we just hide the whole Frame component with some simple CSS until it is ready to avoid FOUC opacity: 0; pointer-events: none;.

souporserious commented 7 years ago

I think this should do for now https://github.com/souporserious/react-view-pager/commit/1cb98d102036a1954d16be6b5bdec1b30a020500