aholachek / react-flip-toolkit

A lightweight magic-move library for configurable layout transitions
MIT License
4.02k stars 135 forks source link

Flipper doesn't work on production mode as expected. #210

Closed michalk91 closed 1 year ago

michalk91 commented 1 year ago

I have components that use Flipper: RichLightbox & LightboxGallery(code here -> (https://github.com/michalk91/deratex-web/tree/main/components/lightboxGallery) ) and RichCarousel & Carousel (code here -> (https://github.com/michalk91/deratex-web/tree/main/components/carouselSlider) ). In dev mode it seems to be working fine. In prod mode in RichCarousel animation does not start after initial render. I have to open first time without animation and then second time with animation. Look at section "certyfikaty" -> (https://deratex-web.vercel.app/). First opening - animation doesnt work, second opening - animation work. How can i fix it? Thank you very much for help. Greetings!