{"id":20016883,"url":"https://github.com/mc-zone/zepto.pageslider","last_synced_at":"2025-05-04T22:31:46.619Z","repository":{"id":27317432,"uuid":"30791714","full_name":"mc-zone/Zepto.pageSlider","owner":"mc-zone","description":"A Zepto JS plugin that creates the various slider modules. 基于Zepto的移动端多功能滚动模块插件","archived":false,"fork":false,"pushed_at":"2017-04-23T13:54:52.000Z","size":85,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T13:49:55.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mc-zone.github.io/Zepto.pageSlider","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/mc-zone.png","metadata":{"files":{"readme":"README.en.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}},"created_at":"2015-02-14T08:46:36.000Z","updated_at":"2023-03-04T06:32:26.000Z","dependencies_parsed_at":"2022-08-26T21:41:47.078Z","dependency_job_id":null,"html_url":"https://github.com/mc-zone/Zepto.pageSlider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mc-zone%2FZepto.pageSlider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mc-zone%2FZepto.pageSlider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mc-zone%2FZepto.pageSlider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mc-zone%2FZepto.pageSlider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mc-zone","download_url":"https://codeload.github.com/mc-zone/Zepto.pageSlider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252408342,"owners_count":21743097,"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-11-13T08:13:31.395Z","updated_at":"2025-05-04T22:31:46.212Z","avatar_url":"https://github.com/mc-zone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Zepto.pageSlider\n\n基于Zepto的移动端多功能滚动模块插件\n\nA Zepto JS plugin that creates the various slider modules. \n\n[Readme for Chinese](https://github.com/mc-zone/Zepto.pageSlider/tree/master/README.md/)\n\n\n##How to Use\n\nstep.1 Import Scripts\n\n```js\n\u003cscript type=\"text/javascript\" src=\"path/to/zepto.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"path/to/zepto.pageSlider.js\"\u003e\u003c/script\u003e\n```\n\nstep.2 HTML Element\n\n```HTML\n\u003cdiv id=\"container\"\u003e\n\t\u003cdiv class=\"page\"\u003e\n        page1\n    \u003c/div\u003e\n\t\u003cdiv class=\"page\"\u003e\n        page2\n    \u003c/div\u003e\n\t\u003cdiv class=\"page\"\u003e\n        page3\n    \u003c/div\u003e\n\u003c/div\u003e\n\n```\n\nstep.3 Initialization\n\n```js\n\u003cscript type=\"text/javascript\"\u003e\nZepto(function($){\n    var $container = $(\"#container\");\n    $container.pageSlider({\n        loop:false,\n        easingTime:600\n    });\n});\n\t\n\u003c/script\u003e\n```\n\n\n##Optional Parameters (and Default Setting)\n\n```js\n$container.pageSlider({\n    pageSelector: \".page\",     //selector for pages. default:`.page`\n    height:     windowHeight,  //default: height of window. Support `%` and `px` value.\n    width:      windowWidth,   //default: width of window. Support `%` and `px` value.\n    horizontal: false,      //default is a vertical slide, also can be horizontal\n    autoSpeed:  5000,       //autoplay speed\n    auto:       false,      //autoplay\n    loop:       true,       //loop, whether or not\n    percentThreshold: 10,   //how many percent of move should trigger scroll. defalut is 10% (no `%`)\n    easing:     'ease-out', //easing function: `linear`, `ease`, `ease-out`(defalut)\n    easingTime: 400,        //easing delay\n    pageCss:    {},         //additional css for pages (no height and width)\n    prevBtn:    null,       //prev button\n    nextBtn:    null,       //next button\n    beforeMove: function($currentPage, $toPage, toIndex){}, //callback on beforeMove\n    afterMove:  function($fromPage, $currentPage, currentIndex){}  //callback on afterMove\n});\n```\n\n##Tips\n\n- Do `css reset` by self. Such as `padding` and `margin` reset for body and container. Because of different possible usage, there is no global style sheet. \n- A page can have more than one and different instances. Even be included with another. See [examples](https://github.com/mc-zone/Zepto.pageSlider/tree/master/examples/).\n\n##More Examples\n\n[examples](https://github.com/mc-zone/Zepto.pageSlider/tree/master/examples/)\n\n\n##Compatibility\n\n(Only lists that have been tested. Welcome to make any issue. )\n- Android 2.3+\n- iOS 6+\n\n## Look forward to your PR !\n\n##License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmc-zone%2Fzepto.pageslider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmc-zone%2Fzepto.pageslider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmc-zone%2Fzepto.pageslider/lists"}