Skip to content
JS testimonial slider with AJAX
JavaScript CSS HTML Makefile
Latest commit 20008ee @AlekseyLeshko Merge branch 'develop'
* develop:
  v2.0.1
  Add a Bitdeli badge to README
  Fix
  Add bitdeli badge
  Clean readme file
  Add a Bitdeli badge to README
Failed to load latest commit information.
config Remove handlebars module
dist v2.0.0
examples Fix example
gulp Add webserver gulp task
src Add best animation slides
test Add best animation slides
.gitignore Update gitignore
.jshintrc Goodbye jQuery!
.travis.yml Update travis.yml
LICENSE Initial commit
Makefile Update makefile
README.md Add a Bitdeli badge to README
bower.json v2.0.1
gulpfile.js Update gulp tasks
package.json v2.0.1

README.md

Testimonial.js

GitHub version Build Status Build Status Dependency Status devDependency Status Code Climate Test Coverage Coverage Status NPM version Bower version NPM NPM

JS testimonial slider with AJAX!

Site with examples

Install

with npm

npm i -D testimonial

with bower

bower install testimonial --save-dev

Usage

Slider simple use

var testimonial = new Testimonial('#testimonial-slider');

Slider with custom options

var options = {
    width: 645,
    timeout: 7000,
    autostart: true,
    slideCount: 3
};
var testimonial = new Testimonial('#testimonial-slider', options);

Slider API

var slideObj = {...};
var testimonial = new Testimonial('#testimonial-slider');
testimonial.stop();
testimonial.start();
testimonial.next();
testimonial.add(slideObj);

Slider with ajax slide load

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);

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)

Bitdeli Badge

Something went wrong with that request. Please try again.