Created
August 29, 2019 08:19
-
-
Save h26k2/4c3a2f4be5b2b25f5d2404b0736bfd21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let carouselElem = document.querySelectorAll('.carousel.carousel-slider'); | |
M.Carousel.init(carouselElem,{ | |
indicators : true, | |
fullWidth : true, | |
duration : 150 | |
}); | |
setTimeout(()=>{ | |
M.Carousel.getInstance(carouselElem[0]).next(); | |
},3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added setTimeout by mistake it would be setInterval function