Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bitstarr/slide-roll

web component to create simple slide show
https://github.com/bitstarr/slide-roll

carousel no-dependencies slider slideshow webcomponent

Last synced: 2 days ago
JSON representation

web component to create simple slide show

Awesome Lists containing this project

README

        

# ``

Simple (non interactive) slide show. You know these things designers use to prevent bloodsheds in management meetings…

It provides basic functionality, by moving through the slides in a given interval. No separate dependencies, only modern CSS and little JavaScrip logic.

[Check out the Demo](https://bitstarr.github.io/slide-roll/demo.html)

## Usage

```html



Random Image from Unsplash


Fancy call to action text?




Another random Image from Unsplash


Have some more text?



[…]

```

Basic structure and styling comes from the slide-roll CSS, which targets the `.slide-roll` class and the data attributes for the track and indicator.

Inside the slides you can do whatever you want. The slides will be the full width of the slide-roll. The height of all slides needs to be the same. Inside you can put only an image or create fancy layout with a bunch of HTML elements and use flexbox, grids or absolute positioning.

The interval can be set via the `interval` attribute and is given in seconds.

The slideshow will pause if the user hovers (mouseover) or touches the element. You can set the attribute `nonstop` to the slide-roll, to prevent pausing.

The indicator is optional. Simply remove the div from the example. You can customize the design of the indication display (look at the demo) since the default styling has a very low specificy.