{"id":22356846,"url":"https://github.com/ayamflow/redraw-dom","last_synced_at":"2025-08-02T20:08:26.639Z","repository":{"id":34483776,"uuid":"38423174","full_name":"ayamflow/redraw-dom","owner":"ayamflow","description":"Forces the browser to synchronously redraw a DOM node.","archived":false,"fork":false,"pushed_at":"2015-07-02T09:20:21.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T09:03:04.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ayamflow.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-07-02T09:18:55.000Z","updated_at":"2015-08-13T18:10:41.000Z","dependencies_parsed_at":"2022-09-16T02:01:07.751Z","dependency_job_id":null,"html_url":"https://github.com/ayamflow/redraw-dom","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ayamflow/redraw-dom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fredraw-dom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fredraw-dom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fredraw-dom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fredraw-dom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayamflow","download_url":"https://codeload.github.com/ayamflow/redraw-dom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayamflow%2Fredraw-dom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448204,"owners_count":24251999,"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-08-02T02:00:12.353Z","response_time":74,"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":"2024-12-04T14:12:11.847Z","updated_at":"2025-08-02T20:08:26.615Z","avatar_url":"https://github.com/ayamflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"redraw-dom\n===\n\nForces the browser to synchronously redraw a DOM node.\n\nAnytime you've got some weird bug with the browsing not updatig the look of your element, you might need to force a repaint/redraw. This snippet will do the trick!\n\nBefore using this, you might want to try the `backface-visibility: hidden;` hack or using `will-change` (as seen [here](https://dev.opera.com/articles/css-will-change-property/)) since this is the \"official\" way to go.\n\n## API\n\n- `redraw(el, display)`\n\nredraw the `el` element (must be a DOM node). `display` is the display style you want restored on the element (defaults to `block`).\n\n## Example\n```\nvar redraw = require('redraw-dom');\n\nvar el = document.querySelector('.el-redraw');\nredraw(el);\n\nel.style.display = 'inline';\nredraw(el, 'inline'); // Preserve the inline display\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayamflow%2Fredraw-dom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayamflow%2Fredraw-dom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayamflow%2Fredraw-dom/lists"}