I have a doubt that is driving me crazy. Navigate everywhere and I appeal to you.
I need "Next" to disappear ( opacity:0
) when the first .rojo
" .rojo:first-child
" has .active
. And that Prev
disappears but when " .rojo:last-child
" has the .active
<div class="carousel-inner">
<div class="carousel-item active">slide 1</div>
<div class="carousel-item">slide 2</div>
<div class="carousel-item">slide 3</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">Prev</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">Next</a>
in CSS
use selectors, but obviously I do not work because .rojo
and .link
are not correlated. .rojo
is child of .pepe
Note: It is a slider
. Next
and Prev
would be the arrows and I want that in the first slide
active% ( .rojo.active
) the previous arrow is not visible, because you can not go back.
I hope you can help me. I embrace the community.