Speed up image rotation

This commit is contained in:
TheMaddax 2024-10-16 22:39:17 -06:00
parent 198cf4b3b9
commit b1d1a523ee

View file

@ -9,7 +9,7 @@ const ImageCarousel: React.FC = () => {
useEffect(() => {
const timer = setInterval(() => {
setCurrentIndex((prevIndex) => (prevIndex + 1) % images.length);
}, 10000);
}, 5000);
return () => clearInterval(timer);
}, []);