# islider_aric

> rotate image islider

Latest version **1.0.5** (published 2017-11-09) · ISC license · 0 weekly downloads

## Install

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

## 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 | 1.0.5 |
| Published | 2017-11-09 |
| First published | 2017-10-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | aric-sky[D[D[[3~- |
| Maintainers | aricsky |

## Links

- npm: https://www.npmjs.com/package/islider_aric
- Repository: https://github.com/Aric-sky/iSlider-gulp
- Homepage: https://github.com/Aric-sky/iSlider-gulp#readme
- Issues: https://github.com/Aric-sky/iSlider-gulp/issues
- npm.io page: https://npm.io/package/islider_aric

## Recent versions

- 1.0.5 (latest) — 2017-11-09
- 1.0.3 — 2017-10-27
- 1.0.2 — 2017-10-27
- 1.0.1 — 2017-10-27
- 1.0.0 — 2017-10-27

## README

# aric-iSlider,纯原生-轮播方法：

## iSlider可绑定事件:
- onslide
- onslidechange
- onslideend
- onslidestart

### iSlider定义在全局，cosole出来看，


## HTML ELEMENT

```<div id="animation-effect" class="iSlider-effect"></div>```

## CSS

```
#iSlider-effect-wrapper {
    height: 517.5px;
    width: 375px;
    margin: 0 auto;
    // background: url('../images/bg_1.png') no-repeat top center;
    background-size: 100%;
    overflow: hidden;
    position: relative;
}

.iSlider-effect {
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.iSlider-effect ul {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  overflow: hidden;
}
.iSlider-effect li {
  position: absolute;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-pack: center;
  -webkit-box-align: center;
  list-style: none;
}
.iSlider-effect ul li img{
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
}

.iSlider-effect div{
  background-color: #ffffff;
  padding: 3px;
}

#menu-select {
  margin-top: 10px;
  text-align: center;
}

#menu-select span {
  display: inline-block;
  border: 2px solid #777;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
  width: 60px;
  cursor: pointer;
}

#animation-effect {
  border: 0;
  width: 100%;
  height: 240px;
  background-color: #000000;
  margin-top: 55px;
}

#animation-effect ul li img {
  border: 0;
}

#menu-select span:hover {
  background-color: #e74c3c;
}

#menu-select span.on {
  background-color: #e74c3c;
}
```

## JS

```
  var data = [{
    height: '100%',
    width: '100%',
    content: ""   //img or dom
},{
    height: '100%',
    width: '100%',
    content: ""
},{
    height: '100%',
    width: '100%',
    content: ""
}];

- content-example
-	content:"https://www.baidu.com/img/bd_logo1.png"
- or
- content:"<div>dom content</di>"

```

## 实例化iSlider

```var iSlider = new self.iSlider({

    data : data,
- 挂载点
    dom : document.getElementById('animation-effect'),
    
    animateType: 'depth',
    
- 轮播方式，default, rotate, flip, depth

    isAutoplay: false,
    
    isLooping: true,
    
    duration:1000,
- type默认为img，填充内容为dom时，需要配置
    type:'dom'
    
});```

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