3.1.0 • Published 1 year ago
react-siriwave v3.1.0
React-SiriWave
Install
npm
npm install --save react-siriwave
yarn
yarn add react-siriwave
Usage
import Siriwave from 'react-siriwave';
// ...
<Siriwave />
// ...
Demo
Constructor options
Key | Type | Description | Default | Required |
---|---|---|---|---|
theme | "ios", "ios9" | The curve style of the wave. | "ios" | no |
ratio | Number | Ratio of the display to use. Calculated by default. | calculated | no |
speed | Number | The speed of the animation. | 0.2 | no |
amplitude | Number | The amplitude of the complete wave-form. | 1 | no |
frequency | Number | The frequency of the complete wave-form. Only available in style "ios" | 6 | no |
color | String | Color of the wave. Only available in style "ios" | "#fff" | no |
cover | Bool | The canvas covers the entire width or height of the container | false | no |
autostart | Bool | Decide wether start the animation on boot. | true | no |
pixelDepth | Number | Number of step (in pixels) used when drawed on canvas. | 0.02 | no |
lerpSpeed | Number | Lerp speed to interpolate properties. | 0.01 | no |
curveDefinition | ICurveDefinition[] | Override definition of the curves | null | no |
onInit | (siriwave: Siriwave) => void | Callback function to get the siriwave instance | null | no |
3.1.0
1 year ago
3.0.0-alpha.6
1 year ago
3.0.0-alpha.1
1 year ago
3.0.0-alpha.0
1 year ago
3.0.0-alpha.3
1 year ago
3.0.0-alpha.2
1 year ago
3.0.0-alpha.5
1 year ago
3.0.0-alpha.4
1 year ago
2.1.0
3 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
5 years ago
1.0.3
5 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago