extends ../_layout/_docs-layout.pug block variables - var slug = 'carousels' - var parent = 'experimentals' - var title = 'Carousels - Experimentals - Spectre.css CSS Framework' - var description = 'Spectre.css CSS Framework is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' block docs-content +docs-heading('carousels', 'Carousels') p small.label.label-secondary CSS ONLY include ../_layout/_ad-g.pug p Carousels are slideshows for cycling images. It is built in pure CSS. .docs-demo.columns .column.col-12 .carousel input#slide-1.carousel-locator(type="radio" name="carousel-radio" hidden="" checked="") input#slide-2.carousel-locator(type="radio" name="carousel-radio" hidden="") input#slide-3.carousel-locator(type="radio" name="carousel-radio" hidden="") input#slide-4.carousel-locator(type="radio" name="carousel-radio" hidden="") .carousel-container figure.carousel-item label.item-prev.btn.btn-action.btn-lg(for="slide-4") i.icon.icon-arrow-left label.item-next.btn.btn-action.btn-lg(for="slide-2") i.icon.icon-arrow-right img.img-responsive.rounded(src="../img/osx-yosemite.jpg" alt="macOS Yosemite Wallpaper") figure.carousel-item label.item-prev.btn.btn-action.btn-lg(for="slide-1") i.icon.icon-arrow-left label.item-next.btn.btn-action.btn-lg(for="slide-3") i.icon.icon-arrow-right img.img-responsive.rounded(src="../img/osx-yosemite-2.jpg" alt="macOS Yosemite Wallpaper") figure.carousel-item label.item-prev.btn.btn-action.btn-lg(for="slide-2") i.icon.icon-arrow-left label.item-next.btn.btn-action.btn-lg(for="slide-4") i.icon.icon-arrow-right img.img-responsive.rounded(src="../img/osx-el-capitan.jpg" alt="macOS El Capitan Wallpaper") figure.carousel-item label.item-prev.btn.btn-action.btn-lg(for="slide-3") i.icon.icon-arrow-left label.item-next.btn.btn-action.btn-lg(for="slide-1") i.icon.icon-arrow-right img.img-responsive.rounded(src="../img/osx-el-capitan-2.jpg" alt="macOS El Capitan Wallpaper") .carousel-nav label.nav-item.text-hide.c-hand(for="slide-1") 1 label.nav-item.text-hide.c-hand(for="slide-2") 2 label.nav-item.text-hide.c-hand(for="slide-3") 3 label.nav-item.text-hide.c-hand(for="slide-4") 4 p | The default image number of Carousels is #[code 8]. You can add more images by changing the variable #[code $carousel-number] in #[code _carousels.scss] and re-compiling the CSS. pre.code(data-lang='HTML') code :highlight(lang="html")