{"id":29458903,"url":"https://github.com/gre/deprecated-qanimationframe","last_synced_at":"2025-07-14T00:09:20.672Z","repository":{"id":9364154,"uuid":"11218710","full_name":"gre/deprecated-qanimationframe","owner":"gre","description":"DEPRECATED just use requestAnimationFrame– Promisified requestAnimationFrame with Q","archived":false,"fork":false,"pushed_at":"2015-02-20T10:46:00.000Z","size":452,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-09T04:19:24.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/qanimationframe","language":"JavaScript","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/gre.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}},"created_at":"2013-07-06T13:42:37.000Z","updated_at":"2024-02-21T18:05:23.000Z","dependencies_parsed_at":"2022-09-14T21:40:23.862Z","dependency_job_id":null,"html_url":"https://github.com/gre/deprecated-qanimationframe","commit_stats":null,"previous_names":["gre/qanimationframe"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gre/deprecated-qanimationframe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fdeprecated-qanimationframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fdeprecated-qanimationframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fdeprecated-qanimationframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fdeprecated-qanimationframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gre","download_url":"https://codeload.github.com/gre/deprecated-qanimationframe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gre%2Fdeprecated-qanimationframe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265224165,"owners_count":23730348,"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":[],"created_at":"2025-07-14T00:09:20.071Z","updated_at":"2025-07-14T00:09:20.652Z","avatar_url":"https://github.com/gre.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**DEPRECATED** in favor of `raf`.\n\nQanimationFrame\n===\nA simple Promise wrapper for `requestAnimationFrame` based on [Q](https://github.com/kriskowal/q).\n\nThis library intends to promisify requestAnimationFrame.\n\n[Checkout the Annotated Source Code](http://gre.github.io/qanimationframe/docs/qanimationframe.html)\n\nUsage\n---\n\n`QanimationFrame` is a *function* which takes a *function* and returns a *promise* containing it's return value (after one frame).\n\n**QanimationFrame(f: function) =\u003e DOM.Element**\n\n### Basic example\n\n```javascript\nvar elt = document.createElement(\"div\");\nelt.innerHTML = \"Hello world\";\nwindow.document.body.appendChild(elt);\n\nvar doSomething = QanimationFrame(function () {\n  elt.style.width = '50px';\n  elt.style.height = '50px';\n  return elt;\n});\n\ndoSomething.then(function (elt) {\n  // style changes are rendered\n  var boundingBox = elt.getBoundingClientRect(elt);\n  console.log(boundingBox.right - boundingBox.left);\n});\n```\n\nInstallation\n---\n\nvia [npm](https://npmjs.org/package/qanimationframe).\n\n```sh\nnpm install qanimationframe\n```\n\nvia bower\n\n```sh\nbower install qanimationframe\n```\n\nSupported browsers\n---\n\nAll browsers are supported (including IE).\n\nTests\n---\n\n[![SauceLabs Status](https://saucelabs.com/browser-matrix/qanimationframe.svg)](https://saucelabs.com/u/qanimationframe)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgre%2Fdeprecated-qanimationframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgre%2Fdeprecated-qanimationframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgre%2Fdeprecated-qanimationframe/lists"}