Giter VIP home page Giter VIP logo

jquery-ticker's Introduction

This is a jquery plugin to creat a counter that update a total number daily, using css3 animation.

Usage

jquery-ticker only needs to follow a simple pattern. Here is an example:

$(".ticker-digits").ticker();

Config Options

Swipe can take an optional second parameter– an object of key/value settings:

  • initDelayForEachDigit Integer (default:100) - delay to start rolling

  • delayForEachDigit Integer (default:300) - delay to start rolling each digit

  • finalDelay Integer (default: 3000) - after all digits starts rolling then wait for few seconds to stop rolling and show the number

  • dataDaily Integer (default: 3182) - Daily increased number

  • beginDate String (default: "2008,01,02") - start date

  • endDate String (default: "2008,01,22") - end date

##CSS

SCSS is used for the plugin, I am using livereload to compile my SCSS code. SCSS code is in /style/src/ticker.scss and the compile code is in /style/style.css

The animation is using the css3 animation to start rolling the background image and then it's done, I positioned the background image to the right digit.

jquery-ticker's People

Watchers

Greg avatar Jiarong Xu avatar James Cloos 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.