ez-snow.js
v2.0.5
Published
Simple Fast Create Snow Effect!
Downloads
7
Maintainers
Readme
Effect:
Demo:
https://jimmyy512.github.io/ez-snow.js
install
$ npm i ez-snow.js
How to use?
- @constructor
- @param {string} appendDomName - DOM element.
- @param {string} srcPath - Image path.
import ezSnow from 'ez-snow.js';
new ezSnow("body","Image Path").init();
and then you can see effect on your dom!
question:
in VueCli 2.X npm run build
have this error:
ERROR in assets/js/vendor.d03d5552b04b91ec1879.js from UglifyJs
Unexpected token: name (ezSnow)...
solution:
open build/webpack.base.config.js file
rules array add
{
test: /.js$/,
loader: 'babel-loader',
include: [resolve('node_modules/ez-snow.js')]
}