Giter Club home page Giter Club logo

numberanimate's Introduction

numberAnimate

numberAnimate 是一款数据滚动组件,我是站在巨人的肩膀上进行制作,提高页面美观性 ,使页面更加绚丽。

创建时间 2016-09-18 16:58

作者 @zoeblow

效果

numberAnimate-preview

版本

  • V 1.0
  • 修改时间 :2016-09-18 16:58
  • 描述:V 1.0 首次提交,之前已经对页面,井进行过若干次修改。
  • 本次就不做具体说明

调用方式

在html中引入jquery之后引入numberAnimate.js 完成之后即可直接使用

<div class="numberRun1"></div> <br><br>
            
<script type="text/javascript" src="../dest/script/jquery.min.js"></script>
<script type="text/javascript" src="../dest/script/numberAnimate.js"></script>
<script>
    $(".numberRun1").numberAnimate({num:'15342.10', pst:"%", dot:2, speed:2000, symbol:","});
</script>

参数

numberAnimate({num:'15342.10', pst:"%", dot:2, speed:2000, symbol:","})

参数 取值类型 默认值 描述
num String/Number 必填项 需要滚动的数字
speed Number 1000 滚动的时间默认为一秒
symbol String - 是否存在千位分隔符,可输入任意字符
dot Number 0 是否保留小数默认为0位小数(也就是分没有)
pst String - 是否有百分号默认为空

numberanimate's People

Contributors

zoeblow avatar

Watchers

Claire-GYD avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.