____ __
/\ _`\ /\ \ __
\ \,\L\_\ ___ __ __ ___ \_\ \ __ _ __ /\_\ ____
\/_\__ \ / __`\/\ \/\ \ /' _ `\ /'_` \ /'__`\/\`'__\ \/\ \ /',__\
/\ \L\ \/\ \L\ \ \ \_\ \/\ \/\ \/\ \L\ \/\ __/\ \ \/ __ \ \ \/\__, `\
\ `\____\ \____/\ \____/\ \_\ \_\ \___,_\ \____\\ \_\/\_\_\ \ \/\____/
\/_____/\/___/ \/___/ \/_/\/_/\/__,_ /\/____/ \/_/\/_/\ \_\ \/___/
\ \____/
\/___/
Sound effector small JavaScript library.
https://sugarshin.github.io/sounder.js/
bower i sounder.js
<script src="sounder.js"></script>
Or use it as an AMD, CommonJS module
// CommonJS
var Sounder = require('sounder');
var sounder = new Sounder(),
output = document.getElementById('output');
sounder.create(output);
Sounder([ options ]);
Piece size
Type: Array
Default: [20, 4]
Coloring
If specify Array, will be chosen at random
Type: String or Array
Default: '#e74c3c'
Effect column length
Type: Number
Default: 6
Effect max height length
Type: Number
Default: 10
Effect auto playing
Type: Boolean
Default: false
fps
Type: Number
Default: 60
Create and redering.
DOMElement
Type: Element
Returns: this
Play.
Returns: this
Pause.
Returns: this
Toggles the state between play and pause.
Function of the first argument is the callback function for play. next is pause.
Returns: this
Stop.
Returns: this
Effect counter reset.
Returns: this
Destory.
This library was developed with following things
npm i
Modern browser and IE8+
MIT
© sugarshin