react-canvas-image-sequence
v1.0.1
Published
Made with create-react-library
Downloads
5
Readme
react-canvas-image-sequence
Install
npm install --save react-canvas-image-sequence
Usage
import React, { Component } from 'react'
import CanvasImageSequence from 'react-canvas-image-sequence'
class Example extends Component {
render() {
return <CanvasImageSequence data={[...]} />
}
}
Props
|name | desc | type | default |
|---|---|---|---|
| data
| Image link array | Array | [] |
| fps
| | Number | 60 |
| canvasWidth
| | Number | 300 |
| canvasHeight
| | Number | 300 |
| autoPlay
| | Boolean | false |
| loop
| | Boolean | false |
| forward
| | Boolean | false |
| onChange
| | Function | null |
Example
License
MIT © rfw