Skip to content

xieqiongjie/red-pack-rain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

red-pack-rain

自己写的第一个红包雨

使用方式

	rain = new redRain({
		vm : _vm,
		el : document.getElementsByClassName("count_wrap")[1],
		clickfun : function() {
		}
	});
	注意:`vm`是自定义需要传的参数,可以在插件里面修改。

构造函数可以传的参数

new redRain(obj);

// obj的内容
el 元素容器
interval 定时器
second 红包出现时间
density 1s内红包个数
callback 回调函数

About

自己写的第一个红包雨

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published