Testimonial.js
> JS testimonial slider with AJAX!Install
npm
withnpm i -D testimonial
bower
withbower install testimonial --save-dev
Usage
Slider simple use
var testimonial = '#testimonial-slider';
Slider with custom options
var options = width: 645 timeout: 7000 autostart: true slideCount: 3;var testimonial = '#testimonial-slider' options;
Slider API
var slideObj = ...;var testimonial = '#testimonial-slider';testimonial;testimonialstart;testimonialnext;testimonial;
Slider with ajax slide load
{ var slide = ; return slide;};var options = width: 645 timeout: 7000 autostart: true slideCount: 3 getSlide: getSlide; var testimonial = '#testimonial-slider' options;
Examples
Structure of the slide
- author
- name
- url
- avatar(url)
- company
- name
- url
- quote
Options
- 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
Build project
make
License
Copyright (c) 2014 Aleksey Leshko Licensed under the The MIT License (MIT)