Basic Image Slideshow with Pure CSS

Author: joggink
Views Total: 43,886 views
Official Page: Go to website
Last Update: April 14, 2015
License: MIT


Basic Image Slideshow with Pure CSS


A proof of concept to have a pure HTML/CSS image slideshow without javascript. It uses the checkbox for active slide and the label element for next/prev arrows navigation. The slideshow also comes with a crossfade transition effect based on CSS3.

How to use it:

Load the core stylesheet in your html page.

<link rel="stylesheet" href="css/slideshow.css">

Add images together with bullets pagination and arrows navigation into the slideshow.

<div class="slideshow">
  <input type="radio" name="slide" id="item-1" checked="checked" />
  <div class="slideshow-item">
    <img src="1.jpg" />
    <label for="item-3" class="previous">Go to slide 3</label>
    <label for="item-2" class="next">Go to slide 2</label>
  <input type="radio" name="slide" id="item-2" />
  <div class="slideshow-item">
    <img src="2.jpg" />
    <label for="item-1" class="previous">Go to slide 1</label>
    <label for="item-3" class="next">Go to slide 3</label>
  <input type="radio" name="slide" id="item-3" />
  <div class="slideshow-item">
    <img src="3.jpg" />
    <label for="item-2" class="previous">Go to slide 2</label>
    <label for="item-1" class="next">Go to slide 1</label>

See also  Pure CSS Material Components Library - Matter.css

Leave a Reply

Your email address will not be published. Required fields are marked *