{"id":15633181,"url":"https://github.com/ankane/swipeout","last_synced_at":"2025-10-13T23:31:06.215Z","repository":{"id":6979190,"uuid":"8233687","full_name":"ankane/swipeout","owner":"ankane","description":"Swipe-to-delete goodness for the mobile web","archived":true,"fork":false,"pushed_at":"2022-03-24T07:31:33.000Z","size":69,"stargazers_count":159,"open_issues_count":0,"forks_count":26,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-01-30T20:40:44.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ankane.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-02-16T09:00:39.000Z","updated_at":"2023-12-28T18:09:05.000Z","dependencies_parsed_at":"2022-09-16T08:41:30.451Z","dependency_job_id":null,"html_url":"https://github.com/ankane/swipeout","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ankane/swipeout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fswipeout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fswipeout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fswipeout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fswipeout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankane","download_url":"https://codeload.github.com/ankane/swipeout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankane%2Fswipeout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017239,"owners_count":26086015,"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-13T02:00:06.723Z","response_time":61,"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-10-03T10:47:18.866Z","updated_at":"2025-10-13T23:31:05.916Z","avatar_url":"https://github.com/ankane.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwipeOut\n\n:surfer: Swipe-to-delete goodness for the mobile web\n\n[View demo](https://ankane.github.io/swipeout/demo.html)\n\n:tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)\n\n## Usage\n\n### It’s easy to get started\n\nInstantiate SwipeOut on a `\u003cul\u003e` or `\u003col\u003e` element.\n\n```javascript\nvar list = document.getElementById(\"list\");\nnew SwipeOut(list);\n```\n\nWhen an item is deleted, a `delete` event is fired.\n\n#### Javascript\n\n```javascript\nlist.addEventListener(\"delete\", function(evt) {\n  // do something, like an ajax call to server\n  // evt.target references the list item\n});\n```\n\n#### jQuery or Zepto\n\n```javascript\n$(\"#list li\").on(\"delete\", function(evt) {\n  // ...\n});\n```\n\n## Install\n\nSwipeOut requires [Hammer.js](https://hammerjs.github.io/). Include the following two files on your website:\n\n[Hammer.js](https://raw.github.com/EightMedia/hammer.js/master/hammer.js) and [SwipeOut](https://raw.github.com/ankane/swipeout/master/swipeout.js)\n\nJust over **3kb total** when minified and gzipped\n\n```html\n\u003cscript src=\"path/to/hammer.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/swipeout.js\"\u003e\u003c/script\u003e\n```\n\n## Customize\n\nThe delete button is unstyled by default. Give it a custom style, like an iOS theme:\n\n```css\n.swipe-out .delete-btn {\n  padding: 6px 8px;\n  border-radius: 6px;\n  border: solid 1px rgb(96,23,18);\n  background-image: linear-gradient(top, rgb(242,153,157), rgb(213,62,41));\n  background-image: -webkit-linear-gradient(top, rgb(242,153,157), rgb(213,62,41));\n  background-image: -moz-linear-gradient(top, rgb(242,153,157), rgb(213,62,41));\n  background-image: -o-linear-gradient(top, rgb(242,153,157), rgb(213,62,41));\n  text-shadow: 0em -0.1em rgb(51,51,51);\n  color: #fff;\n  font: bold 14px/20px \"Helvetica Neue\", Arial, Helvetica, sans-serif;\n}\n```\n\nThe delete button text can be set with:\n\n```javascript\nnew SwipeOut(list, {btnText: \"Remove\"}); // default: \"Delete\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fswipeout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankane%2Fswipeout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankane%2Fswipeout/lists"}