I'm having trouble setting React Bootstrap's Carousel to not autoplay.
This is my code right now:
import React from 'react';
import Carousel from 'react-bootstrap/Carousel';
import pigment1 from '../images/design-images/pigment/page1.jpeg';
import pigment2 from '../images/design-images/pigment/page2.jpg';
import pigment3 from '../images/design-images/pigment/page3.jpg';
import './DesignProjects.css';
function DesignProjects(props) {
return (
<section>
<h2>Design Work</h2>
<div className='design-project'>
<h3>Pigment Website Redesign</h3>
<Carousel interval={false}>
<Carousel.Item>
<img className='d-block w-100' src={pigment1} alt='First slide' />
</Carousel.Item>
<Carousel.Item>
<img className='d-block w-100' src={pigment2} alt='Third slide' />
</Carousel.Item>
<Carousel.Item>
<img className='d-block w-100' src={pigment3} alt='Third slide' />
</Carousel.Item>
</Carousel>
</div>
</section>
);
}
export default DesignProjects;
From what I read I need to set interval to false... but every way I've attempted to do so has resulted in either getting an error or the Carousel cycling faster through the images. The above is the last way I attempted, but again it's not working, instead it cycles through faster.
Any help would be incredibly appreciated!