Ybooh: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
Sem resumo de edição |
||
Linha 1: | Linha 1: | ||
< | <h1>CSS-only Carousel</h1> | ||
< | |||
<div class=" | <p>This carousel is created with HTML and CSS only.</p> | ||
<div class=" | |||
<div class=" | <section class="carousel" aria-label="Gallery"> | ||
<div class="slide">< | <ol class="carousel__viewport"> | ||
<li id="carousel__slide1" | |||
</ | tabindex="0" | ||
</ | class="carousel__slide"> | ||
<div class="carousel__snapper"> | |||
<a href="#carousel__slide4" | |||
class="carousel__prev">Go to last slide</a> | |||
<a href="#carousel__slide2" | |||
class="carousel__next">Go to next slide</a> | |||
</div> | |||
</li> | |||
<li id="carousel__slide2" | |||
tabindex="0" | |||
class="carousel__slide"> | |||
<div class="carousel__snapper"></div> | |||
<a href="#carousel__slide1" | |||
class="carousel__prev">Go to previous slide</a> | |||
<a href="#carousel__slide3" | |||
class="carousel__next">Go to next slide</a> | |||
</li> | |||
<li id="carousel__slide3" | |||
tabindex="0" | |||
class="carousel__slide"> | |||
<div class="carousel__snapper"></div> | |||
<a href="#carousel__slide2" | |||
class="carousel__prev">Go to previous slide</a> | |||
<a href="#carousel__slide4" | |||
class="carousel__next">Go to next slide</a> | |||
</li> | |||
<li id="carousel__slide4" | |||
tabindex="0" | |||
class="carousel__slide"> | |||
<div class="carousel__snapper"></div> | |||
<a href="#carousel__slide3" | |||
class="carousel__prev">Go to previous slide</a> | |||
<a href="#carousel__slide1" | |||
class="carousel__next">Go to first slide</a> | |||
</li> | |||
</ol> | |||
<aside class="carousel__navigation"> | |||
<ol class="carousel__navigation-list"> | |||
<li class="carousel__navigation-item"> | |||
<a href="#carousel__slide1" | |||
class="carousel__navigation-button">Go to slide 1</a> | |||
</li> | |||
<li class="carousel__navigation-item"> | |||
<a href="#carousel__slide2" | |||
class="carousel__navigation-button">Go to slide 2</a> | |||
</li> | |||
<li class="carousel__navigation-item"> | |||
<a href="#carousel__slide3" | |||
class="carousel__navigation-button">Go to slide 3</a> | |||
</li> | |||
<li class="carousel__navigation-item"> | |||
<a href="#carousel__slide4" | |||
class="carousel__navigation-button">Go to slide 4</a> | |||
</li> | |||
</ol> | |||
</aside> | |||
</section> |
Edição das 18h26min de 24 de julho de 2023
CSS-only Carousel
This carousel is created with HTML and CSS only.
<section class="carousel" aria-label="Gallery">
<aside class="carousel__navigation">
</aside>
</section>