{"id":15380755,"url":"https://github.com/bitstarr/image-comparison","last_synced_at":"2025-09-07T15:39:55.983Z","repository":{"id":218017404,"uuid":"744043437","full_name":"bitstarr/image-comparison","owner":"bitstarr","description":"web component to create an image comparison element","archived":false,"fork":false,"pushed_at":"2024-01-23T15:25:11.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T22:36:13.395Z","etag":null,"topics":["comparison","no-dependencies","webcomponent"],"latest_commit_sha":null,"homepage":"","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/bitstarr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-16T14:19:58.000Z","updated_at":"2024-02-02T14:57:05.000Z","dependencies_parsed_at":"2024-01-19T10:07:19.902Z","dependency_job_id":"d26cddc6-9b5f-4768-b5e3-fb8ed6c31f9f","html_url":"https://github.com/bitstarr/image-comparison","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"3a33ec40dbbec223894328ea7f91d8b78117c6a4"},"previous_names":["bitstarr/image-comparison"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitstarr/image-comparison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitstarr%2Fimage-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitstarr%2Fimage-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitstarr%2Fimage-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitstarr%2Fimage-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitstarr","download_url":"https://codeload.github.com/bitstarr/image-comparison/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitstarr%2Fimage-comparison/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274058612,"owners_count":25215195,"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-09-07T02:00:09.463Z","response_time":67,"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":["comparison","no-dependencies","webcomponent"],"created_at":"2024-10-01T14:24:31.710Z","updated_at":"2025-09-07T15:39:55.945Z","avatar_url":"https://github.com/bitstarr.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cimage-comparison\u003e`\n\nA web component to create an image comparison element. Based off of [this Codepen](https://codepen.io/stoumann/pen/VwKgJNv) from [Mads Stoumann](https://codepen.io/stoumann).\n\n[Check out the Demo](https://bitstarr.github.io/image-comparison/demo.html)\n\n## Usage\n\n```html\n\u003cscript type=\"module\" src=\"image-comparison.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"image-comparison.css\"\u003e\n\n\u003cimage-comparison class=\"imgcompare\"\u003e\n    \u003cimg class=\"before\" src=\"https://picsum.photos/960/540?random=1\" alt=\"A random image from Unsplash\" /\u003e\n    \u003cimg class=\"after\" src=\"https://picsum.photos/960/540?random=2\" alt=\"Another random image from Unsplash\" /\u003e\n\u003c/image-comparison\u003e\n```\n\n### Change aspect ratio\n\n```html\n\u003cimage-comparison aspect-ratio=\"4/3\"\u003e\n    …\n\u003c/image-comparison\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitstarr%2Fimage-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitstarr%2Fimage-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitstarr%2Fimage-comparison/lists"}