Skip to content

[Help]: Change scrollSpeed for the Fade plugin with Autoplay #1029

Closed Answered by davidjerleke
prs-wjy asked this question in Help
Discussion options

You must be logged in to vote

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 })
  ]
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prs-wjy
Comment options

Answer selected by davidjerleke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something
2 participants