I'm trying to make a first screen of a website with only a Carousel, so that it is occupying the entire screen of the user (responsively). You see? Type the index screen will always be a full screen carousel. I tried a lot of the net, but I still can not. Not even using as background-image, as I've used in static pages.
It is as if the screen is in the size of the image. But I wanted them to stay inside the div and receive the size of the main div, which in turn would be responsive and would occupy the entire user screen. Help ae: D
/* Open when someone clicks on the span element */
function openNav() {
document.getElementById("myNav").style.width = "100%";
}
/* Close when someone clicks on the "x" symbol inside the overlay */
function closeNav() {
document.getElementById("myNav").style.width = "0%";
}
/* Muda o tempo do carousel, e tira o mousehover */
$('.carousel').carousel({
interval: 3200,
cycle: true,
pause: "null"
})
/* ------------ carousel -------------------*/
.carousel-inner {
list-style: none;
/* aqui tiro a opção de passar SLIDEs < > */
position: relative!important;
z-index: 1;
top: 0;
left: 0;
}
/* apagar os tracinhos que indicam onde a posição do carousel */
.carousel-indicators {
opacity: 0;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><linkhref="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script><!--carousel--><divclass="col-md-12" id="slides">
<div class="row">
<div id="meuCarousel" class="carousel slide " data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#meuCarousel" data-slide-to="0" class="active"></li>
<li data-target="#meuCarousel" data-slide-to="1"></li>
<li data-target="#meuCarousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100 img-fluid" src="https://i.stack.imgur.com/YNHbD.png"alt="primeiro slide">
</div>
<div class="carousel-item">
<img class="d-block w-100 img-fluid" src="https://i.stack.imgur.com/YNHbD.png"alt="segundo slide">
</div>
<div class="carousel-item">
<img class="d-block w-100 img-fluid" src="https://i.stack.imgur.com/YNHbD.png"alt="terceiro slide">
</div>
</div>
</div>
</div>
</div>