Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Carousel.sass

Carousel.sass is a simple carousel pure css using Sass.

DEMO

SASS MIXIN

SCSS

@mixin carousel($items, $animation: 'default')

SASS

=carousel($items, $animation: 'default')

HTML

<div class="carousel">
  <input type="radio" id="carousel-1" name="carousel[]" checked>
  <input type="radio" id="carousel-2" name="carousel[]">
  <input type="radio" id="carousel-3" name="carousel[]">
  <input type="radio" id="carousel-4" name="carousel[]">
  <input type="radio" id="carousel-5" name="carousel[]">
  <ul class="carousel__items">
    <li class="carousel__item"><img src="img/carousel-1.jpg" alt=""></li>
    <li class="carousel__item"><img src="img/carousel-2.jpg" alt=""></li>
    <li class="carousel__item"><img src="img/carousel-3.jpg" alt=""></li>
    <li class="carousel__item"><img src="img/carousel-4.jpg" alt=""></li>
    <li class="carousel__item"><img src="img/carousel-5.jpg" alt=""></li>
  </ul>
  <div class="carousel__prev">
    <label for="carousel-1"></label>
    <label for="carousel-2"></label>
    <label for="carousel-3"></label>
    <label for="carousel-4"></label>
    <label for="carousel-5"></label>
  </div>
  <div class="carousel__next">
    <label for="carousel-1"></label>
    <label for="carousel-2"></label>
    <label for="carousel-3"></label>
    <label for="carousel-4"></label>
    <label for="carousel-5"></label>
  </div>
  <div class="carousel__nav">
    <label for="carousel-1"></label>
    <label for="carousel-2"></label>
    <label for="carousel-3"></label>
    <label for="carousel-4"></label>
    <label for="carousel-5"></label>
  </div>
</div>

HOW TO USE

@import 'carousel';

@include carousel(5);

About

Simple carousel pure CSS3

Resources

License

Releases

No releases published

Packages

No packages published

Languages