Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carousel Images appear below currrent Image, and then replace it. #40839

Closed
3 tasks done
markddrake opened this issue Sep 16, 2024 · 4 comments
Closed
3 tasks done

Carousel Images appear below currrent Image, and then replace it. #40839

markddrake opened this issue Sep 16, 2024 · 4 comments

Comments

@markddrake
Copy link

markddrake commented Sep 16, 2024

Prerequisites

Describe the issue

using a simple bootstrap carouse, when the carousel starts to cycle or the left and right buttons are pressed the new image appears below the bottom right corner of the image to be replaced, both images then slide left and the bottom (new) imagesmoves up to replace the old image when the old image is not longer viasable.

Reduced test cases

<!doctype html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Available Services</title>
    <link rel="stylesheet" href="/npm/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/npm/bootstrap-icons/font/bootstrap-icons.css">
<style>
</style>
  </head>
  <body>
    <div class="container">
      <div class="row">
	     <div id="slideCarosuel" class="carousel slide" data-bs-ride="carousel">
	       <div class="carousel-inner">
  		     <div class="carousel-item  active"><img class="d-block w-100" src="https://www.aber.ac.uk/en/discover-aberystwyth/about-aber/aboutaberystwyth.jpg"/></div>
	       </div>
		   <div class="carousel-inner">
  		     <div class="carousel-item"><img class="d-block w-100" src="https://www.aber.ac.uk/en/discover-aberystwyth/about-aber/aboutaberystwyth.jpg"/></div>
	       </div>
  		   <div class="carousel-inner">
		     <div class="carousel-item"><img class="d-block w-100" src="https://www.aber.ac.uk/en/discover-aberystwyth/about-aber/aboutaberystwyth.jpg"/></div>
		   </div>
           <a class="carousel-control-prev" href="#slideCarosuel" role="button" data-bs-slide="prev">
             <span class="carousel-control-prev-icon"></span>
           </a>
           <a class="carousel-control-next" href="#slideCarosuel" role="button" data-bs-slide="next">
             <span class="carousel-control-next-icon"></span>
           </a> 
        </div>
	  </div>
	</div>
    <script src="/npm/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
  </body>
</html>

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Microsoft Edge

What version of Bootstrap are you using?

5.3

@julien-deramond
Copy link
Member

Hello @markddrake.

From the HTML markup, everything looks correct as described in the documentation. I’ve also double-checked the example’s rendering on Edge, and I couldn’t spot any unusual behavior.

Could you please create a working reduced test case on CodePen or StackBlitz for easier testing?
If possible, a short video or GIF highlighting the issue would be helpful for us to better understand what's happening.

Thanks for your time 🙏

@omishah
Copy link

omishah commented Sep 17, 2024

The issue is because you have multiple .carousel-inner divs inside .carousel div, instead you should have only one .carousel-inner div and within this div all your individual slides .carousel-item divs must be set!

@julien-deramond
Copy link
Member

Good catch @omishah! Thanks for pointing that out!
You got better eyes than me. It's too early in the morning on my side 😇
So I'm closing this issue as it's a markup issue.

@julien-deramond julien-deramond closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2024
@markddrake
Copy link
Author

Thanks guys - problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants