Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

input-shine

hold-baby6MIT0.1.6

Make the input box more beautiful

input, shine, canvas

readme

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背景色透明。