Skip to content

Snowing Effect ( 簡單實現網頁下雪效果 )

Notifications You must be signed in to change notification settings

jimmyy512/ez-snow.js

Repository files navigation

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')]
}

About

Snowing Effect ( 簡單實現網頁下雪效果 )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published