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

https://github.com/caiogondim/ken-burns-slideshow

:sparkler: A slideshow in JS with the Ken Burns effect.
https://github.com/caiogondim/ken-burns-slideshow

Last synced: 2 months ago
JSON representation

:sparkler: A slideshow in JS with the Ken Burns effect.

Awesome Lists containing this project

README

        

# ken-burns-slideshow

A slideshow in JS with the Ken Burns effect.

## Install

```bash
npm install --save ken-burns-slideshow
```

## Usage

Put a list of images on HTML:
```html






```

Start the library
```javascript
var slideshow = new KenBurnsSlideshow({
el: document.querySelector('ul')
})
```

## API

### contructor `new KenburnsSlideshow`

Creates in memory a new `KenBurnsSlideshow`. No side effects.

Properties passed on instantiation time

- `props.el`
- Type: `HTMLElement`
- Required: `true`
- `props.transitionDelay`
- Type: `Number`
- Default: 7000
- `props.cssPrefix`
- Type: `String`
- Default: 'ken-burns-slideshow'

### `init`

Starts the slideshow behaviour.

### `stop`

Stops the slideshow.

---

[caiogondim.com](https://caiogondim.com)  · 
GitHub [@caiogondim](https://github.com/caiogondim)  · 
Twitter [@caio_gondim](https://twitter.com/caio_gondim)