Repository navigation
[Help]: Can we use breakpoints to use Fade transitions? #975
SummaryHi, as the title suggests, I wonder if it's possible to swap to If applicable, which variants of Embla Carousel are relevant to this question?
Additional informationNo response CodeSandbox exampleNo response |
Answered by
davidjerleke
Aug 15, 2024
Replies: 1 comment 2 replies
|
@psntr do you mean that you would like to activate the Fade plugin on a certain breakpoint? If yes, use the breakpoints option for the Fade plugin like so: const emblaNode = document.querySelector('.embla')
const emblaApi = EmblaCarousel(emblaNode, { loop: true }, [Fade({
breakpoints: {
'(min-width: 768px)': { active: false }
}
})]) |
2 replies
Answer selected by
davidjerleke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@psntr do you mean that you would like to activate the Fade plugin on a certain breakpoint? If yes, use the breakpoints option for the Fade plugin like so: