Code Monkey home page Code Monkey logo

jquery.number-run.js's Introduction

jquery.number-run.js

jquery.number-run.js 数字滚动插件

在线演示:

https://postbird.gitee.io/jquery.number-run.js

使用方式:

示例一:

<span id="number-example-1" class="text-number" number="3276.32" speed="20">3276.32</span>
$("#number-example-1").numberRun({
    attr: true
});

示例二:

<span id="number-example-2" class="text-number" number="3276" speed="30">3276</span>
$("#number-example-2").numberRun({
    attr: true
});

示例三:

<span id="number-example-3" class="text-number">3276</span>
$("#number-example-3").numberRun({
    number:3276,
    speed:40
});

示例四:

<span id="number-example-4" class="text-number">3276</span>
$("#number-example-4").numberRun({
    number: 3276,
    speed: 60,
    callback:function(){
        alert("滚动完成,number = 3276,speed = 20");
    }
});

参数说明:

参数名 参数说明
attr 是否从 html 的 attr 中获取参数,如果选择是,则 html 中必须有 numberspeed 两个 attr
number 最终需要滚动的数字 可以从 html中获取,也可以配置,支持小数
speed 滚动的速度,speed,滚动速度越慢
callback 回调函数,滚动完成后出发该方法

License:

MIT

jquery.number-run.js's People

Contributors

postbird avatar

Stargazers

Roman 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.