with npm
npm i -D testimonial
with bower
bower install testimonial --save-dev
var testimonial = new Testimonial('#testimonial-slider');
var options = {
width: 645,
timeout: 7000,
autostart: true,
slideCount: 3
};
var testimonial = new Testimonial('#testimonial-slider', options);
var slideObj = {...};
var testimonial = new Testimonial('#testimonial-slider');
testimonial.stop();
testimonial.start();
testimonial.next();
testimonial.add(slideObj);
function getSlide() {
var slide = getRandomSlide();
return slide;
};
var options = {
width: 645,
timeout: 7000,
autostart: true,
slideCount: 3,
getSlide: getSlide
};
var testimonial = new Testimonial('#testimonial-slider', options);
- author
- name
- url
- avatar(url)
- company
- name
- url
- quote
- width, type: Number, default: 700
- slideCount, type: Number, default: 3
- timeout, type: Number, default: 7000
- autostart, type: Boolean, default: true
- getSlide, type: Function, default: undefined
make
Copyright (c) 2014 Aleksey Leshko Licensed under the The MIT License (MIT)