Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/layflags/rolling-number

<layflags-rolling-number> is an easy-to-use inline Web Component that shows a nice rolling digit animation and automatically adapts to the surrounding font style
https://github.com/layflags/rolling-number

webcomponents

Last synced: 12 days ago
JSON representation

<layflags-rolling-number> is an easy-to-use inline Web Component that shows a nice rolling digit animation and automatically adapts to the surrounding font style

Awesome Lists containing this project

README

        

Buy Me A Coffee

# <layflags-rolling-number>

This easy-to-use inline Web Component shows a nice rolling digit animation and automatically adapts to the surrounding font style.

![Rolling Number Screen Recording](rolling-number.gif)

**See a DEMO here: https://layflags.github.io/rolling-number/**

This project makes use of the latest browser features ([Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_Components), [module scripts](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules), [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/--*), etc.) which are well supported in current versions of [Google Chrome](https://www.google.com/chrome/), [Mozilla Firefox](https://www.mozilla.org/en-US/firefox/new/), [Apple Safari](https://www.apple.com/safari/) and [Microsoft Edge](https://www.microsoft.com/en-us/edge). If you need to target older browser versions or Microsoft Internet Explorer, you need to provide appropriate polyfills.

## Installation

### Self hosted

Add the following to an HTML document:

```html

```

### CDN

Add the following to an HTML document:

```html

```

### [NPM](https://www.npmjs.com/package/@layflags/rolling-number)

Run `npm i @layflags/rolling-number`.

## Usage

```html

123

```

## License

[MIT License](LICENSE)