{"id":18358800,"url":"https://github.com/uppercod/keen-slider","last_synced_at":"2025-04-10T03:00:20.120Z","repository":{"id":57169044,"uuid":"380332508","full_name":"UpperCod/keen-slider","owner":"UpperCod","description":"It is a wrapper for keen-slider as a webcomponent created with Atomico.","archived":false,"fork":false,"pushed_at":"2022-02-12T05:48:37.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T10:09:33.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://uppercod.github.io/keen-slider/","language":"TypeScript","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/UpperCod.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":"2021-06-25T19:09:17.000Z","updated_at":"2022-02-11T17:35:02.000Z","dependencies_parsed_at":"2022-09-13T08:51:58.685Z","dependency_job_id":null,"html_url":"https://github.com/UpperCod/keen-slider","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/UpperCod%2Fkeen-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fkeen-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fkeen-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fkeen-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/keen-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148217,"owners_count":21055547,"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-05T22:19:32.400Z","updated_at":"2025-04-10T03:00:20.068Z","avatar_url":"https://github.com/UpperCod.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @uppercod/keen-slider\r\n\r\n**Working...**\r\n\r\nIt is a wrapper for keen-slider as a webcomponent created with Atomico.\r\n\r\n## Example\r\n\r\n### HTML\r\n\r\n```html\r\n\u003ckeen-slider\u003e\r\n  \u003cdiv\u003eslide 1\u003c/div\u003e\r\n  \u003cdiv\u003eslide 2\u003c/div\u003e\r\n  \u003cdiv\u003eslide 3\u003c/div\u003e\r\n  \u003cdiv\u003eslide 4\u003c/div\u003e\r\n\u003c/keen-slider\u003e\r\n```\r\n\r\n### React\r\n\r\nTo use in React you must first install the dependency `@atomico/react`.\r\n\r\n```jsx\r\nimport { Slider } from \"@uppercod/keen-slider/components.react\";\r\n\r\nfunction App() {\r\n  return (\r\n    \u003c\u003e\r\n      \u003cSlider\u003e\r\n        \u003cdiv\u003eslide 1\u003c/div\u003e\r\n        \u003cdiv\u003eslide 2\u003c/div\u003e\r\n        \u003cdiv\u003eslide 3\u003c/div\u003e\r\n        \u003cdiv\u003eslide 4\u003c/div\u003e\r\n      \u003c/Slider\u003e\r\n    \u003c/\u003e\r\n  );\r\n}\r\n```\r\n\r\n## Api\r\n\r\ncurrently the component reflects the following options from the [original api](https://keen-slider.io/api/#api).\r\n\r\n### Properties\r\n\r\n| Property / Attribute            | Type                   | Description                                                                                                              |\r\n| ------------------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------ |\r\n| loop                            | boolean                | Infinite loop of slides                                                                                                  |\r\n| centered                        | boolean                | Active slide will be centered - only makes sense, when slidesPerView is greater than 1                                   |\r\n| vertical                        | boolean                | Set the slider direction to vertical                                                                                     |\r\n| autoplay                        | boolean                | defines if the slide advances automatically                                                                              |\r\n| autoplayMs / autoplay-ms        | number, default `5000` | timeout to retrieve autoplay loop                                                                                        |\r\n| duration                        | number, default `500`  | Set the animation duration for the \"snap\"-mode                                                                           |\r\n| slidesPerView / slides-per-view | number, default `1`    | Number of slides per view                                                                                                |\r\n| spacing                         | number, default `0`    | Spacing between slides in pixel                                                                                          |\r\n| mode                            | string, default `snap` | Set the mode of movement of the slider                                                                                   |\r\n| slider                          | KeenSlider             | KeenSlider Last Instance                                                                                                 |\r\n| breakpoints                     | Object                 | defines the breakpoints for the instance of KeenSlider, eg `'(min-width: 720px) and (max-width: 1000px)': {loop: false}` |\r\n\r\n### Events\r\n\r\n## breakpoints\r\n\r\n```html\r\n\u003ckeen-slider\r\n  breakpoints='{\"\u003e=500px\": { \"loop\": false, \"duration\": 500, \"autoplay\": false }}'\r\n\u003e\u003c/keen-slider\u003e\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fkeen-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fkeen-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fkeen-slider/lists"}