[Help]: Change scrollSpeed
for the Fade plugin with Autoplay
#1029
-
Which variants of Embla Carousel are relevant to this feature request?
Feature descriptionI hope there is an option to control the autoplay scroll speed. my use case is using autoplay plugin with fade plugin, and i want the fade transition to be slower/smoother: const [emblaRef, emblaApi] = useEmblaCarousel(
{loop: false, watchDrag: false},
[
Fade(),
AutoPlay({
delay: 4000,
scrollSpeed: 1000, // controlling fade duration
})
]
) Additional ContextAdditional details here... Before submitting
|
Beta Was this translation helpful? Give feedback.
Answered by
davidjerleke
Oct 14, 2024
Replies: 1 comment 1 reply
-
Hi @prs-wjy, Why don't you use the duration option for the carousel like so: const [emblaRef, emblaApi] = useEmblaCarousel(
{
loop: false,
watchDrag: false,
duration: 30 // controlling fade duration
},
[
Fade(),
AutoPlay({ delay: 4000 })
]
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davidjerleke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @prs-wjy,
Why don't you use the duration option for the carousel like so: