{"id":13604584,"url":"https://github.com/jl-/flat-carousel","last_synced_at":"2025-07-30T00:31:10.621Z","repository":{"id":86153296,"uuid":"220969350","full_name":"jl-/flat-carousel","owner":"jl-","description":"React carousel component","archived":false,"fork":false,"pushed_at":"2019-12-28T03:48:43.000Z","size":9,"stargazers_count":14,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-07T09:43:05.483Z","etag":null,"topics":["carousel","carousel-component","hook","react","reactjs","swiper"],"latest_commit_sha":null,"homepage":"","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/jl-.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-11-11T11:45:54.000Z","updated_at":"2024-06-10T15:12:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"57546121-ab6b-4159-983a-176bcbcbe91f","html_url":"https://github.com/jl-/flat-carousel","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/jl-%2Fflat-carousel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jl-%2Fflat-carousel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jl-%2Fflat-carousel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jl-%2Fflat-carousel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jl-","download_url":"https://codeload.github.com/jl-/flat-carousel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228061810,"owners_count":17863370,"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":["carousel","carousel-component","hook","react","reactjs","swiper"],"created_at":"2024-08-01T19:00:48.584Z","updated_at":"2024-12-04T07:06:03.307Z","avatar_url":"https://github.com/jl-.png","language":"TypeScript","readme":"\n## FlatCarousel\n\u003e a tiny carousel component for react.\n\n\n## [Demo](https://codesandbox.io/s/jolly-fog-671g5?fontsize=14)\n\n## Features\n- no dependency\n- support autoplay\n- support touch and mouse device\n- transition done with raf and tweening.\n- infinite loop without duplicating the first\u0026last item\n\n## Demo\n```javascript\nimport Carousel from 'flat-carousel';\n\nconst images = [\n    { src: 'some image' }\n];\n\nconst MyCarousel = () =\u003e (\n    \u003cCarousel\u003e\n        {images.map((image, index) =\u003e (\n            \u003cdiv\n                key={index}\n                className=\"demo-item\"\n                style={{ backgroundImage: 'url(' + image.src + ')' }}\n            /\u003e\n        ))}\n    \u003c/Carousel\u003e\n);\n```\n\n## Props\n- `initialIndex?`: number, defaults to 0\n- `transitionDuration?`: number, defaults to 400ms\n- `autoplay?`: boolean, defaults to true\n- `autoplayInterval?`: number, defaults to 3000ms\n- `infiniteLoop?`: boolean, defaults to true\n- `onPageChange?(index: number)`: void;\n","funding_links":[],"categories":["UI Components"],"sub_categories":["Carousel"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjl-%2Fflat-carousel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjl-%2Fflat-carousel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjl-%2Fflat-carousel/lists"}