# roll-num

> Simple tools

Latest version **1.1.0** (published 2020-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install roll-num
pnpm add roll-num
yarn add roll-num
bun add roll-num
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-10-30 |
| First published | 2020-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | astadon |
| Maintainers | astadon |

## Links

- npm: https://www.npmjs.com/package/roll-num
- npm.io page: https://npm.io/package/roll-num

## Recent versions

- 1.1.0 (latest) — 2020-10-30

## README

# 基于jquery 的数字滚动
 
## HTML
```
<div id="datanums"></div>
```
## js调用

```
$("#datanums").rollnum({ deval: 21, //设置值 digit: 4, //设置显示4位数 classname: 'test' //设置样式名称 });
```

### 通用css
```
// 数字滚动css start
.inrow>li,.inrow span{display:inline-block;*display:inline;*zoom:1;font-size:14px;letter-spacing:normal;word-spacing:normal}.dataNums{position:absolute;margin-top:4px}.dataNums .dataOne{width:18px;height:40px;text-align:center}.dataNums .dataBoc{position:relative;width:100%;height:100%;overflow:hidden}.dataNums .dataBoc .tt{position:absolute;top:0;left:0;width:100%;height:100%}.dataNums .tt span{width:100%;height:100%;font:bold 30px/30px '';color:#ddf0ff}
// 数字滚动css end
```

---
_Source: https://npm.io/package/roll-num · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
