GitXplorerGitXplorer
d

PureSlider

public
182 stars
9 forks
2 issues

Commits

List of commits on branch master.
Unverified
5f05149df94a5492229b8061fd061a588945c487

Update readme.md

mmLuby committed 9 years ago
Unverified
a9d48f59fef87d3ca07a6aa138fe20c0b2b22ef6

Update readme.md

ddjyde committed 9 years ago
Unverified
2ccd7718526bbc67d0d7d2e422e5b31f7453359d

update readme

ddjyde committed 9 years ago
Unverified
5565d87e0e26f99f258a050a931cd3fcde046dc8

update readme

ddjyde committed 9 years ago
Unverified
819064746dea77211c848411cccf629e54d65c93

update readme

ddjyde committed 9 years ago
Unverified
e97db1805639438e57b674bee0f0615f66883004

update readme

ddjyde committed 9 years ago

README

The README file for this repository.

PureSlider

npm npm npm

A lightweight, no-dependency image slider library.

Demo

http://djyde.github.io/PureSlider

Install

CommonJS:

$ npm install pureslider

Browser:

Import the dist/pureslider.dist.js and link the dist/pureslider.css.

Usage

<div id="pure-slider">
  <div class="ps-item">
    <img src="foo.jpg" >
  </div>
  <div class="ps-item">
    <img src="foo.jpg" >
  </div>
  <div class="ps-item">
    <img src="foo.jpg" >
  </div>
  <div class="ps-item">
    <img src="foo.jpg" >
  </div>
</div>
import 'pureslider/src/pureslider.css' // Or any other way linking the stylesheet

import PureSlider from 'pureslider'

const slider = new PureSlider({ /** options **/ })

slider.slide() // start the slider

API

PureSlider([,options])

options:

key default
actionMode fade
duration 2000

PureSlider.slide()

Contribution

I made PureSlider because I found that there aren't many image slider libraries I can use without jQuery. Note there is only one action mode right now, so pull requests are very welcome. Let's make PureSlider a good choice for staying independent from jQuery.

Used by

License

MIT License