0.1.6 • Published 6 years ago

input-shine v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

inputShine

demo

NPM

npm install input-shine

直接引入

// 在页面引入js
<script type="text/javascript" src="dist/inputShine.min.js"></script>

、、、

<script>
	// var input = newl inputShine(id, opt)
	var white = new inputShine("white", {
		shine : "white"
	})
</script>

opt

id: input的id
opt : {
	shine : "white" // 光点颜色
	textColor : "white" // 输入框字体颜色
	borderColor : "white" // 输入框边框颜色
}
// 颜色可选值:
white(默认) black red orange yellow green young blue purple;

注意

为使效果更好,建议input父元素背景色使用深色系,并且input背景色透明。