Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hold-baby/inputshine

Input shine
https://github.com/hold-baby/inputshine

canvas css3 html5 input javascript

Last synced: about 1 month ago
JSON representation

Input shine

Awesome Lists containing this project

README

        

# inputShine
[demo](https://hold-baby.github.io/inputShine/)

# NPM
```babel
npm install input-shine
```

# 直接引入
```html
// 在页面引入js

、、、

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

```
# opt
```js
id: input的id
opt : {
shine : "white" // 光点颜色
textColor : "white" // 输入框字体颜色
borderColor : "white" // 输入框边框颜色
}
// 颜色可选值:
white(默认) black red orange yellow green young blue purple;
```
# 注意
为使效果更好,建议input父元素背景色使用深色系,并且input背景色透明。