1.0.4 • Published 6 years ago

react-number-ticker v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

react-number-ticker

Travis npm package Coveralls

Drop-in react component for displaying numbers with animated transitions.

alt text

How to use

In a basic html page

Include the UMD build in the <head></head> section of your html (also includes React, CSSTransitionGroup)

<script src="https://unpkg.com/react-number-ticker@1.0.0/umd/react-number-ticker.min.js"></script>

Include the CSS file (Ticker uses CSS3 transition animations when changing digits)

<script src="https://unpkg.com/react-number-ticker@1.0.0/umd/main.css"></script>

Write the something like this in the body of your html:

<body>
  <div id="root"></div>
  <script>
    ReactDOM.render(
      React.createElement(ReactNumberTicker),
      document.getElementById('root')
    );
  </script>
</body>

Use Cases

  • Dynamic numbers that change with user input
  • Timers
  • (potentially) Sequence of words
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago