My current challenge involves making a 3D carousel responsive on mobile devices. I attempted to use the img-fluid class with Bootstrap, but encountered issues that affected my web view.
Below is the CSS code within HTML:
var angle = 0;
function galleryspin(sign) {
spinner = document.querySelector("#spinner");
if (!sign) { angle = angle + 45; } else { angle = angle - 45; }
spinner.setAttribute("style","-webkit-transform: rotateY("+ angle+"deg); -moz-transform:rotateY("+ angle +"deg); transform: rotateY("+ angle+"deg);");
}
div#carousel {
perspective: 1200px;
background: black;
padding-top: 10%;
font-size:0;
margin-bottom: 3rem;
overflow: hidden;
}
figure#spinner {
transform-style: preserve-3d;
height: 300px;
... (CSS code continues)
<body>
<base href="https://picsum.photos/200/300">
<div id="carousel">
... (HTML code continues)
</body>
I came across information online suggesting that adding specific code could make a website mobile-responsive. Do you think this approach alone is sufficient, or would it be better to incorporate Bootstrap for responsiveness?