Topic: how to increase interval react carousel component

kkbehera free asked 6 years ago


how can i set interval in react carousel component?it was suggested to add data-interval=\"10000\" but not working in react carousel as react carousel takes 5000 default interval. thank you

Raul Garcia free answered 3 years ago


Hello,

I would like to set interval={0}, but it is not working. How can I stop the interval?

Best regards, RG.


Krzysztof Wilk staff commented 3 years ago

Try to set interval={false}, that should work :)

Keep coding!


Jakub Strebeyko staff answered 6 years ago


Hi there kkbehera, Welcome to the Support Board! data- attributes are used for communication of components' internal logic with their DOM representation and are a popular way of dealing with customization in MDB jQuery version. In MDB React, <Carousel> takes in interval props, specifying a number of milliseconds after which it will be performing the next() function (that, in turn, is also passed in as a this.props.next props). Therefore, Carousel's interval in MDB React is set by, for example, <Carousel interval={4000}>. With Best Regards, Kuba

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags