ken-burns-slideshow
A slideshow in JS with the Ken Burns effect.
Install
npm install --save ken-burns-slideshow
Usage
Put a list of images on HTML:
Start the library
var slideshow = el: document
API
new KenburnsSlideshow
contructor Creates in memory a new KenBurnsSlideshow
. No side effects.
Properties passed on instantiation time
props.el
- Type:
HTMLElement
- Required:
true
- Type:
props.transitionDelay
- Type:
Number
- Default: 7000
props.cssPrefix
- Type:
String
- Default: 'ken-burns-slideshow'
- Type:
init
Starts the slideshow behaviour.
stop
Stops the slideshow.
caiogondim.com · GitHub @caiogondim · Twitter @caio_gondim