{"id":16962008,"url":"https://github.com/wangdahoo/swiper","last_synced_at":"2025-06-26T12:07:47.426Z","repository":{"id":38011206,"uuid":"228289706","full_name":"wangdahoo/swiper","owner":"wangdahoo","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T12:14:55.000Z","size":935,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T15:46:33.249Z","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/wangdahoo.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":"2019-12-16T02:50:48.000Z","updated_at":"2020-01-07T07:18:46.000Z","dependencies_parsed_at":"2023-01-26T02:01:46.969Z","dependency_job_id":null,"html_url":"https://github.com/wangdahoo/swiper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangdahoo/swiper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdahoo%2Fswiper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdahoo%2Fswiper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdahoo%2Fswiper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdahoo%2Fswiper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangdahoo","download_url":"https://codeload.github.com/wangdahoo/swiper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdahoo%2Fswiper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262063486,"owners_count":23252764,"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":[],"created_at":"2024-10-13T23:04:57.969Z","updated_at":"2025-06-26T12:07:47.410Z","avatar_url":"https://github.com/wangdahoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swiper\n\n\u003e swiper for mobile in minimal.\n\n## Usage\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"UTF-8\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n  \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"\u003e\n  \u003ctitle\u003eSwiper in Minimal\u003c/title\u003e\n\n  \u003c!-- swiper.css --\u003e\n  \u003clink href=\"https://unpkg.com/@wangdahoo/swiper@0.1.1/dist/swiper.min.css\" rel=\"stylesheet\"\u003e\n  \u003cstyle\u003e\n    html, body {\n      margin: 0;\n      padding: 0;\n    }\n\n    .swiper-item {\n      background: orange;\n      color: #fff;\n      font-size: 100px;\n      line-height: 300px;\n      text-align: center;\n    }\n  \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003c!-- swiper contaienr \u0026 items, need set width and height for container --\u003e\n  \u003cdiv class=\"swiper\" style=\"width: 100%; height: 300px;\"\u003e\n    \u003cdiv class=\"swiper-item\"\u003e\n      0\n    \u003c/div\u003e\n    \u003cdiv class=\"swiper-item\"\u003e\n      1\n    \u003c/div\u003e\n    \u003cdiv class=\"swiper-item\"\u003e\n      2\n    \u003c/div\u003e\n    \u003cdiv class=\"swiper-item\"\u003e\n      3\n    \u003c/div\u003e\n    \u003cdiv class=\"swiper-item\"\u003e\n      4\n    \u003c/div\u003e\n  \u003c/div\u003e\n\n  \u003c!-- swiper.js --\u003e\n  \u003cscript src=\"https://unpkg.com/@wangdahoo/swiper@0.1.1/dist/swiper.min.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    window.swiper = new Swiper(document.querySelector('.swiper'), {\n      auto: false,\n      itemClass: '.swiper-item',\n      disableTouch: false,\n      direction: 'horizontal',\n      transitionEnd: function (prev, current, length) {\n        console.log(prev, current, length)\n      }\n    })\n  \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## More\n\n- [Examples](https://wangdahoo.github.io/swiper)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangdahoo%2Fswiper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangdahoo%2Fswiper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangdahoo%2Fswiper/lists"}