GitXplorerGitXplorer
d

PureSlider

public
184 stars
9 forks
2 issues

Commits

List of commits on branch master.
Unverified
073519dc4195f8d36bae516e206d987cc8d2e5b5

Merge pull request #5 from vladislavpauk/master

ddjyde committed 9 years ago
Unverified
a60fa35ebf9de56544a8cefca42428dca63087d7

Enhance gulpfile.js; Add missing semicolons

committed 9 years ago
Unverified
38b8c6bc2004ef05d8a9ea676f28b16d7e14da47

Remove unnecessary ExtractTextPlugin webpack plugin

committed 9 years ago
Unverified
cd71958256ca7a528eae63616675e04d6f28f812

Merge pull request #4 from egoist/master

ddjyde committed 9 years ago
Unverified
d6ca0312137969aa59c774ac2ef8a65373f818c1

Destructuring

committed 9 years ago
Unverified
59e594f5f686c203cf40ec15b73eb0663edc93b6

Merge pull request #3 from mLuby/patch-1

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