{"id":13519233,"url":"https://github.com/darsain/sly","last_synced_at":"2025-05-14T19:05:38.803Z","repository":{"id":2458162,"uuid":"3429960","full_name":"darsain/sly","owner":"darsain","description":"JavaScript library for one-directional scrolling with item based navigation support.","archived":false,"fork":false,"pushed_at":"2020-09-07T21:59:30.000Z","size":1227,"stargazers_count":2865,"open_issues_count":82,"forks_count":494,"subscribers_count":149,"default_branch":"master","last_synced_at":"2025-04-06T04:03:36.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://darsa.in/sly","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/darsain.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-13T12:53:54.000Z","updated_at":"2025-03-10T19:32:10.000Z","dependencies_parsed_at":"2022-07-14T08:18:16.035Z","dependency_job_id":null,"html_url":"https://github.com/darsain/sly","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darsain%2Fsly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darsain%2Fsly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darsain%2Fsly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darsain%2Fsly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darsain","download_url":"https://codeload.github.com/darsain/sly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487690,"owners_count":21112190,"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-08-01T05:01:56.107Z","updated_at":"2025-04-13T07:24:26.759Z","avatar_url":"https://github.com/darsain.png","language":"JavaScript","readme":"# [Sly](http://darsa.in/sly)\n\nJavaScript library for one-directional scrolling with item based navigation support.\n\nSly supports navigation with:\n\n- mouse wheel scrolling\n- scrollbar (dragging the handle or clicking on scrollbar)\n- pages bar\n- various navigation buttons\n- content dragging with mouse or touch\n- automated cycling by items or pages\n- lots of super useful methods\n\n... and has a powerful \u0026 developer friendly API!\n\nThat's all build around a custom [highly optimized animation rendering](http://i.imgur.com/nszjJBZ.png) with\nrequestAnimationFrame, and GPU accelerated positioning with fallbacks for browsers that don't support it.\n\n#### Dependencies\n\n- jQuery 1.7+\n\n#### Compatibility\n\nWorks everywhere, even in IE6+ abominations, but that is a complete accident :) IE 6-7 are not officially supported.\n\n### [Forum](https://groups.google.com/d/forum/sly-js)\n\nForum is for questions. Issues are for bug reports and feature requests. Don't mix the two :)\n\n## Usage\n\nConstructor:\n\n```js\nvar options = {\n\thorizontal: 1,\n\titemNav: 'basic',\n\tspeed: 300,\n\tmouseDragging: 1,\n\ttouchDragging: 1\n};\nvar frame = new Sly('#frame', options).init();\n```\n\njQuery proxy:\n\n```js\nvar options = {\n\thorizontal: 1,\n\titemNav: 'basic',\n\tspeed: 300,\n\tmouseDragging: 1,\n\ttouchDragging: 1\n};\n$('#frame').sly(options);\n```\n\njQuery proxy is good when you want to create an instance and forget about it. For anything more complex, like using methods, events, accessing instance properties, ... use the constructor and work with the instance directly.\n\n## Download\n\nLatest stable release:\n\n- [Production `sly.min.js`](https://raw.github.com/darsain/sly/master/dist/sly.min.js) - 16KB, 7KB gzipped\n- [Development `sly.js`](https://raw.github.com/darsain/sly/master/dist/sly.js) - 55KB\n\nWhen isolating issues on jsfiddle, you can use this URL:\n\n- [http://darsain.github.io/sly/js/sly.min.js](http://darsain.github.io/sly/js/sly.min.js)\n\n## Documentation\n\nCan be found in the [docs](https://github.com/darsain/sly/tree/master/docs) directory.\n\n## Contributing\n\nPlease, read the [Contributing Guidelines](CONTRIBUTING.md) for this project.\n\n## License\n\nMIT","funding_links":[],"categories":["Sliders","JavaScript","Sliders [🔝](#readme)","UI","幻灯片"],"sub_categories":["Runner","运行器","运行器e2e测试"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarsain%2Fsly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarsain%2Fsly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarsain%2Fsly/lists"}