{"id":23053639,"url":"https://github.com/component/onload","last_synced_at":"2025-10-11T09:15:30.002Z","repository":{"id":7701936,"uuid":"9066440","full_name":"component/onload","owner":"component","description":"Add onload transitions to DOM elements (fade in images etc)","archived":false,"fork":false,"pushed_at":"2013-08-21T17:32:54.000Z","size":69,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-31T23:26:44.367Z","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/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-03-27T23:58:18.000Z","updated_at":"2023-09-04T09:49:43.000Z","dependencies_parsed_at":"2022-09-01T11:50:59.079Z","dependency_job_id":null,"html_url":"https://github.com/component/onload","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/component/onload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fonload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fonload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fonload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fonload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/onload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fonload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006752,"owners_count":26084177,"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-11T02:00:06.511Z","response_time":55,"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-16T00:18:56.215Z","updated_at":"2025-10-11T09:15:29.988Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# onload\n\n  Add onload transitions to DOM elements that\n  emit \"load\" events such as images by adding\n  \".preload\" and \".onload\" classnames accordingly.\n\n## Installation\n\n    $ component install component/onload\n\n## Example\n\n Example js:\n\n```js\nvar onload = require('onload');\nvar img = document.querySelector('img');\nonload(img);\n```\n\n Example css:\n\n```css\nimg {\n  opacity: 1;\n  -webkit-transition: opacity 300ms;\n  -moz-transition: opacity 300ms;\n  transition: opacity 300ms;\n}\n\nimg.preload {\n  opacity: 0;\n}\n```\n\n## API\n\n - `onload(el)`\n\n## Images\n\n  Images which are `.complete` are immediately\n  assigned \".onload\" so that effects can be applied\n  to non-cached images only.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fonload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fonload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fonload/lists"}