// Create a new carousel instance
let car = new bootstrap.Carousel(document.querySelector('#carouselMenu'), {
interval: 0,
wrap: false
});
// <SNIP>
// Go to page at index 1
car.to("1");
Error:
https://i.sstatic.net/EN6s1.png
If you do not use JavaScript and instead add the HTML attribute data-bs-slide-to="1"
to the button, then the jumping will work