How to turn on/off the embla carousel by breakpoint in React? #304
-
I'm trying to turn/on off the carousel based on breakpoint. So for mobile, it's on and for tablet up it's off. Here's what I tried that seems to work initially, but won't reinitialize. I'm guessing it's because
|
Beta Was this translation helpful? Give feedback.
Answered by
davidjerleke
Apr 21, 2022
Replies: 1 comment 2 replies
-
Hi @bmarshall511, Thank you for your question. Pass
Best, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bmarshall511
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @bmarshall511,
Thank you for your question. Pass
null
instead of theemblaRef
when you want it to be inactive, like demonstrated here.Best,
David