forked from Kenshin/simpread
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwaves.js
More file actions
41 lines (37 loc) · 944 Bytes
/
waves.js
File metadata and controls
41 lines (37 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*!
* React Material Design: Waves
*
* @version : 0.0.1
* @update : 2017/04/19
* @homepage: https://github.com/kenshin/mduikit
* @license : MIT https://github.com/kenshin/mduikit/blob/master/LICENSE
* @author : Kenshin Wang <kenshin@ksria.com>
* @modules : http://fian.my.id/Waves
*
* @copyright 2017
*/
console.log( "==== simpread component: Waves ====" )
import '../waves/waves.min.css';
import Waves from '../waves/waves.js';
const wavesopts = {
root : undefined,
duration : 500,
delay : 200,
};
/**
* Waves
*
* External library:
* - http://fian.my.id/Waves/
*
* @param {object} option object
*/
export function Render( options ) {
if ( options && options.root ) {
const ops = { ...wavesopts, ...options };
ops.root = $( ops.root )[0];
Waves.init( ops );
} else {
console.error( "options param error" );
}
}