# vinslider

> A native javascript slider module.

Latest version **2.0.0-beta.2** (published 2017-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install vinslider
pnpm add vinslider
yarn add vinslider
bun add vinslider
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-beta.2 |
| Published | 2017-01-09 |
| First published | 2016-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vincent |
| Maintainers | 77vincent |
| Keywords | slider, carousel, native |

## Links

- npm: https://www.npmjs.com/package/vinslider
- Repository: https://www.npmjs.com/package/vinslider
- Homepage: https://github.com/77Vincent/vinslider#readme
- Issues: https://github.com/77Vincent/vinslider/issues
- npm.io page: https://npm.io/package/vinslider

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 2.0.0-beta.2 (latest) — 2017-01-09
- 2.0.0-beta.1 — 2017-01-09
- 2.0.0-beta — 2017-01-08
- 1.1.2 — 2017-01-06
- 1.1.1 — 2016-12-29
- 1.1.0 — 2016-12-29
- 1.0.6 — 2016-08-29
- 1.0.5 — 2016-08-20
- 1.0.4 — 2016-08-20
- 1.0.3 — 2016-08-20
- 1.0.2 — 2016-08-20
- 1.0.1 — 2016-08-19
- 1.0.0 — 2016-08-19

## README

# Vinslider 

Super lightweight, native Javascript slider module. 

http://www.77webtech.com/vinslider

## Setup

#### Installation 

    npm install --save vinslider

#### Markup

    <div id="vinslider">
        <div>content</div>
        <div>content</div>
        ...
    <div>
    
    <div id="prev">Prev</div>
    <div id="next">Next</div>

* All items could be any HTML element
 
#### Javascript
    
    import Vinslider from 'vinslider'

    new Vinslider({
        el: '#vinslider',
        prev: '#prev',
        next: '#next'
    })

#### CSS
    
    #vinslider { visibility: hidden; }
    
* Please add this line to your Vinslider element, it will be visible again after initiating

## Configurations

#### Your Vinslider wrapper, pass the element selector

    el: '#vinslider' 

#### Previous slide controller, pass your element selector

    prev: '#prev' 

#### Next slide controller, pass your element selector

    next: '#next' 

#### How many slides being shown at a time
 
    amount: 1 (Default) 

#### The duration of transition

    speed: 750 (millisecond)

#### How much time each slide stays

    duration: 3000 (millisecond)

#### Vinslider will autoplay

    isAutoplay: true (Default)

#### Vinslider doesn't stop when reaching the last slide

    isInfinite: true (Default)

## Browser Compatibility

IE 9: No CSS transition effect

IE 10: Fully supported

## License

Released under the MIT license: http://opensource.org/licenses/MIT

---
_Source: https://npm.io/package/vinslider · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
