Closed stratboy closed 2 months ago
Not sure if you already solved this but you can try this Best way to disable FlexSlider in small viewports? #774 . Found it on https://github.com/woocommerce/FlexSlider/issues/636
I ended up with a throttled function that erases the related dom onresize, creates a clone from a backup template, re-inject it into the document and reinstantiate flexslider with changed options. Messy, but works. Still, it's a shame that the main options aren't swappable on the fly AND that flexslider doesn't have at least proper functions to cancel itself.
Alvin Manansala ha scritto:
Not sure if you already solved this but you can try this Best way to disable FlexSlider in small viewports? #774 https://github.com/woocommerce/FlexSlider/issues/774. Found it on
636 https://github.com/woocommerce/FlexSlider/issues/636
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/woocommerce/FlexSlider/issues/1602#issuecomment-259352004, or mute the thread https://github.com/notifications/unsubscribe-auth/AAatXvupxE5_SooHEXid6t4HCLClaOLGks5q8XnngaJpZM4KSq9T.
HI, I need to change direction base on breakpoints. I tried to save a flexslider instance and then use flexsliderinstance.vars.direction but it doesn't work. Probably I should destroy and reinitialize flexslider, but it seems not to have any reliable method for doing it.
So how can I change the direction on the fly OR reinitialize flexslider?
Thank you, regards