{"id":14990268,"url":"https://github.com/9am/before-after","last_synced_at":"2025-09-06T04:39:41.691Z","repository":{"id":213330580,"uuid":"733817443","full_name":"9am/before-after","owner":"9am","description":"A small Web Component shows a before-after comparison. 🌓","archived":false,"fork":false,"pushed_at":"2024-02-22T02:33:51.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T23:07:27.323Z","etag":null,"topics":["before-after","comparison","custom-element","slide","web-component"],"latest_commit_sha":null,"homepage":"https://9am.github.io/before-after/","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/9am.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-20T07:38:17.000Z","updated_at":"2024-11-05T07:11:54.000Z","dependencies_parsed_at":"2024-02-21T03:44:52.783Z","dependency_job_id":"fa56f21a-01ea-403f-9365-088e7f8d06ce","html_url":"https://github.com/9am/before-after","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"645dab95b85b4d2f5529d98cd5a231bdd2e11456"},"previous_names":["9am/before-after"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9am%2Fbefore-after","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9am%2Fbefore-after/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9am%2Fbefore-after/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9am%2Fbefore-after/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9am","download_url":"https://codeload.github.com/9am/before-after/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991511,"owners_count":21194893,"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":["before-after","comparison","custom-element","slide","web-component"],"created_at":"2024-09-24T14:19:48.222Z","updated_at":"2025-04-15T01:42:11.065Z","avatar_url":"https://github.com/9am.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/9am/before-after/main/logo.svg\" alt=\"before-after-logo\" width=\"140\" height=\"140\" /\u003e\n    \u003ch1\u003e\u0026lt;before-after\u0026gt;\u003c/h1\u003e\n\t\u003cp\u003eA small Web Component shows a before-after comparison. 🌓\u003c/p\u003e\n    \u003cp\u003e\n        \u003ca href=\"https://github.com/9am/before-after/blob/main/LICENSE\"\u003e\n            \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/9am/before-after?style=flat-square\u0026color=success\"\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://www.npmjs.com/package/@9am/before-after\"\u003e\n            \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/@9am/before-after?style=flat-square\u0026color=orange\"\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://www.npmjs.com/package/@9am/before-after\"\u003e\n            \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/@9am/before-after?style=flat-square\u0026color=blue\"\u003e\n        \u003c/a\u003e\n        \u003ca href=\"https://bundlephobia.com/package/@9am/before-after@latest\"\u003e\n            \u003cimg alt=\"npm bundle size\" src=\"https://img.shields.io/bundlephobia/minzip/@9am/before-after?style=flat-square\"\u003e\n        \u003c/a\u003e\n    \u003c/p\u003e\n\u003c/div\u003e\n\n\n## Demo\n\nGo to the [Home page](https://9am.github.io/before-after/).\n\n## Usage\n\nInclude via CDN(e.g. unpkg) or Download a copy\n\n```html\n\u003cscript src=\"https://unpkg.com/@9am/before-after/dist/index.min.js\"\u003e\u003c/script\u003e\n\n\u003cbefore-after\u003e\n    \u003csection slot=\"before\"\u003e\n        \u003ch1\u003eBEFORE\u003c/h1\u003e\n    \u003c/section\u003e\n    \u003csection slot=\"after\"\u003e\n        \u003ch1\u003eAFTER\u003c/h1\u003e\n    \u003c/section\u003e\n\u003c/before-after\u003e\n```\n\n\u003cdetails\u003e\n    \u003csummary\u003eOr import the ESM version\u003c/summary\u003e\n\n```html\n\u003cscript type=\"module\"\u003e\n    import 'https://unpkg.com/@9am/before-after/dist/index.es.js';\n\u003c/script\u003e\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003eOr install via npm\u003c/summary\u003e\n\n```sh\nnpm install @9am/before-after\n```\n\n\u003c/details\u003e\n\n## Documentation\n\n### Attributes\n\n| Name | Type | Default | Description |\n| :--- | :--- | :---    | :---        |\n| `varient` | linear  \\|  radial  \\|  conic \u003cbr\u003e repeating-linear  \\|  repeating-radial  \\|  repeating-conic  | `linear` | The varient. |\n| `orient` | horizontal \\| vertical | `horizontal` | The orientation. |\n| `value` | number | `50` | The position of the thumb bar. (0-100) |\n\n### CSS Properties\n\n| Name | Type | Default | Description |\n| :--- | :--- | :---    | :---        |\n| `--position` | css gradient params before `\u003ccolor-stop-list\u003e` | linear: `to left` \u003cbr\u003e radial: `circle at center` \u003cbr\u003e conic: `at center` | The control for how the mask behaves. |\n| `--repeat` | number | `6` | The repeat times for `repeating-` varients. |\n| `--thumb-size` | css size | `1px` | The thumb size. |\n| `--thumb-color` | css color | `white` | The thumb color. |\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9am%2Fbefore-after","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9am%2Fbefore-after","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9am%2Fbefore-after/lists"}