{"id":32247712,"url":"https://github.com/samthor/rainbows","last_synced_at":"2025-10-22T17:37:07.290Z","repository":{"id":26126683,"uuid":"29571322","full_name":"samthor/rainbows","owner":"samthor","description":"meta theme-color control library via Web Animations","archived":true,"fork":false,"pushed_at":"2015-01-24T03:42:49.000Z","size":212,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T03:11:41.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samthor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-21T04:31:05.000Z","updated_at":"2023-01-28T14:54:42.000Z","dependencies_parsed_at":"2022-07-22T04:17:02.795Z","dependency_job_id":null,"html_url":"https://github.com/samthor/rainbows","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/samthor/rainbows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2Frainbows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2Frainbows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2Frainbows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2Frainbows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samthor","download_url":"https://codeload.github.com/samthor/rainbows/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2Frainbows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280299599,"owners_count":26306953,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-22T17:37:06.405Z","updated_at":"2025-10-22T17:37:07.282Z","avatar_url":"https://github.com/samthor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Helper to animate the `theme-color` meta tag using Web Animations. [Video](http://youtu.be/wolnA7rgHUM) or [demo](https://cdn.rawgit.com/samthor/rainbows/v0.1.1/rainbows.html) (Chrome 36+, Android only for now).\n\n## Install\n\nOptional install with Bower:\n\n    $ bower install rainbows\n\nRequires [Web Animations](http://caniuse.com/#feat=web-animation) or a [suitable polyfill](https://github.com/web-animations/web-animations-js).\n\n## Usage\n\n```html\n\u003cscript src=\"bower_components/rainbows/rainbows.js\"\u003e\u003c/script\u003e\n```\n\nOr, if you'd like to just link to the CDN:\n\n```html\n\u003cscript src=\"https://cdn.rawgit.com/samthor/rainbows/v0.1.1/rainbows.html\"\u003e\u003c/script\u003e\n```\n\n```js\n\nRColor.default = 'pink';\n\nvar steps = [{ background: 'red' }, { background: 'blue' }];\nvar anim = RColor.animate(steps, { duration: 2000, iterations: 2 });\nanim.onfinish = function() {\n  console.info('done!');\n};\n\nvar steps = ['rgb(255, 128, 0)', 'hsl(128, 80%, 100%)'];\nvar anim = RColor.animate(steps, { duration: 1500, direction: 'reverse' });\nwindow.setTimeout(function() {\n  anim.pause();\n  window.setTimeout(function() {\n    anim.cancel();\n  }, 500);\n}, 500);\n\n```\n\nThe `animate` method is called as per the `Element.animate()` in Web Animations, except that a step consisting of just a string is automatically converted to animate the `background` property (see the second example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamthor%2Frainbows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamthor%2Frainbows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamthor%2Frainbows/lists"}