1.2.1 • Published 8 years ago

skewslider v1.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

skewSlider

npm

Demo

Installation

 $ npm install --save skewslider

Usage

<canvas id="canvas" width="640" height="640"></canvas>
<script src="path/to/skewslider.js"></script>
var skewSlider = new SkewSlider({
  el       : document.getElementById('canvas'),
  angle    : 15,
  interval : 5000,
  duration : 1000,
  sources  : [
    'http://placeimg.com/640/640/people?p=1',
    'http://placeimg.com/640/640/people?p=2',
    'http://placeimg.com/640/640/people?p=3',
    'http://placeimg.com/640/640/people?p=4'
  ]
});

Options

namedescriptiondefault
el: HTMLCanvasElement描画対象のCanvas要素-
angle: number斜めの角度0
interval: number次のアニメーションまでの時間(ms)2000
duration: numberアニメーションの時間(ms)1000
sources: string[]画像URLの配列-

Support

IE >= 9 and modern browsers.

License

MIT License.

1.2.1

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.0.0

9 years ago