{"id":16520578,"url":"https://github.com/layflags/rolling-number","last_synced_at":"2025-03-16T19:30:58.780Z","repository":{"id":141683258,"uuid":"407483203","full_name":"layflags/rolling-number","owner":"layflags","description":"\u003clayflags-rolling-number\u003e is an easy-to-use inline Web Component that shows a nice rolling digit animation and automatically adapts to the surrounding font style","archived":false,"fork":false,"pushed_at":"2024-07-10T14:53:40.000Z","size":167,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-12T16:51:29.331Z","etag":null,"topics":["webcomponents"],"latest_commit_sha":null,"homepage":"https://layflags.github.io/rolling-number/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/layflags.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-17T09:31:12.000Z","updated_at":"2024-09-05T04:10:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab4824ff-1ddd-4135-88f6-5caaca6285a8","html_url":"https://github.com/layflags/rolling-number","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Frolling-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Frolling-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Frolling-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layflags%2Frolling-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/layflags","download_url":"https://codeload.github.com/layflags/rolling-number/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221667192,"owners_count":16860569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["webcomponents"],"created_at":"2024-10-11T16:51:39.729Z","updated_at":"2024-10-27T11:09:03.247Z","avatar_url":"https://github.com/layflags.png","language":"HTML","funding_links":["https://www.buymeacoffee.com/layflags"],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.buymeacoffee.com/layflags\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\n# \u0026lt;layflags-rolling-number\u0026gt;\n\nThis easy-to-use inline Web Component shows a nice rolling digit animation and automatically adapts to the surrounding font style.\n\n![Rolling Number Screen Recording](rolling-number.gif)\n\n**See a DEMO here: https://layflags.github.io/rolling-number/**\n\nThis 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.\n\n## Installation\n\n### Self hosted\n\nAdd the following to an HTML document:\n\n```html\n\u003cscript type=\"module\" src=\"path/to/rolling-number.js\"\u003e\u003c/script\u003e\n```\n\n### CDN\n\nAdd the following to an HTML document:\n\n```html\n\u003cscript\n  type=\"module\"\n  src=\"https://unpkg.com/@layflags/rolling-number@1.0.0/rolling-number.js\"\n\u003e\u003c/script\u003e\n```\n\n### [NPM](https://www.npmjs.com/package/@layflags/rolling-number)\n\nRun `npm i @layflags/rolling-number`.\n\n## Usage\n\n```html\n\u003c!-- value by fallback --\u003e\n\u003clayflags-rolling-number\u003e123\u003c/layflags-rolling-number\u003e\n\n\u003c!-- value w/o fallback --\u003e\n\u003clayflags-rolling-number value=\"123\"\u003e\u003c/layflags-rolling-number\u003e\n\n\u003c!-- customize roll duration --\u003e\n\u003clayflags-rolling-number\n  style=\"--roll-duration:750ms\"\n  value=\"123\"\n\u003e\u003c/layflags-rolling-number\u003e\n```\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayflags%2Frolling-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayflags%2Frolling-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayflags%2Frolling-number/lists"}