1.0.3 • Published 6 years ago
harlem-shake v1.0.3
Harlem Shake
Installation
npm install harlem-shake
Usage
const HarlemShake = require("harlem-shake");
const url = require("harlem-shake/assets/harlem-shake.mp3");
new HarlemShake({
singleDancer: "#main",
allDancer = ["p", "img", "a", "label"]
}, url).start();
If you are using webpack, add the following lines to your webpack config :
module: {
rules: [
{
test: /\.mp3$/,
loader: 'file-loader'
}
]
}